From cb77199753d565983a5db22efbd7fbf96a3d23f1 Mon Sep 17 00:00:00 2001 From: Cecile Robert-Michon Date: Tue, 19 Apr 2022 11:54:35 -0700 Subject: [PATCH] Create resource group with custom user tags --- azure/services/groups/spec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/services/groups/spec.go b/azure/services/groups/spec.go index bc8bcc686d4..6cfea74efff 100644 --- a/azure/services/groups/spec.go +++ b/azure/services/groups/spec.go @@ -56,13 +56,13 @@ func (s *GroupSpec) Parameters(existing interface{}) (params interface{}, err er } return resources.Group{ Location: to.StringPtr(s.Location), - // We create only CAPZ default tags. User defined additional tags - // are created and updated using tags service. + // User defined additional tags are created with the resource group and updated using tags service. Tags: converters.TagsToMap(infrav1.Build(infrav1.BuildParams{ ClusterName: s.ClusterName, Lifecycle: infrav1.ResourceLifecycleOwned, Name: to.StringPtr(s.Name), Role: to.StringPtr(infrav1.CommonRole), + Additional: s.AdditionalTags, })), }, nil }