Skip to content

Commit 14b58a5

Browse files
Merge pull request #299 from microsoft/fix-gsa-deploy
fix: Prevent removal of existing RG tags when deploying GSA
2 parents 0bea710 + aed6a06 commit 14b58a5

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

infra/main.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
334334
name: 'default'
335335
properties: {
336336
tags: {
337+
...resourceGroup().tags
338+
...tags
337339
TemplateName: 'Content Processing'
338340
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
339341
CreatedBy: createdBy

infra/main.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "10045374231657176554"
9+
"templateHash": "14310770063360835011"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -287,11 +287,7 @@
287287
"apiVersion": "2021-04-01",
288288
"name": "default",
289289
"properties": {
290-
"tags": {
291-
"TemplateName": "Content Processing",
292-
"Type": "[if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF')]",
293-
"CreatedBy": "[parameters('createdBy')]"
294-
}
290+
"tags": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags'), createObject('TemplateName', 'Content Processing', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'))))]"
295291
}
296292
},
297293
"virtualNetwork": {
@@ -38710,10 +38706,10 @@
3871038706
"dependsOn": [
3871138707
"avmContainerApp",
3871238708
"avmManagedIdentity",
38713-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
38714-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
3871538709
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
3871638710
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
38711+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
38712+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
3871738713
"logAnalyticsWorkspace",
3871838714
"virtualNetwork"
3871938715
]
@@ -41051,8 +41047,8 @@
4105141047
"dependsOn": [
4105241048
"avmContainerApp",
4105341049
"avmManagedIdentity",
41054-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4105541050
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
41051+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4105641052
"virtualNetwork"
4105741053
]
4105841054
},

0 commit comments

Comments
 (0)