Skip to content

Commit a739636

Browse files
Merge pull request #719 from microsoft/fix-gsa-deploy-res
fix: Prevent removal of existing RG tags when deploying GSA
2 parents af58d1a + 7feae5b commit a739636

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

infra/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
145145
name: 'default'
146146
properties: {
147147
tags: {
148+
...resourceGroup().tags
148149
...tags
149150
TemplateName: 'Research Assistant'
150151
CreatedBy: createdBy

infra/main.json

Lines changed: 5 additions & 5 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": "4337548567990578963"
9+
"templateHash": "7195801196475709586"
1010
}
1111
},
1212
"parameters": {
@@ -311,7 +311,7 @@
311311
"apiVersion": "2021-04-01",
312312
"name": "default",
313313
"properties": {
314-
"tags": "[shallowMerge(createArray(parameters('tags'), createObject('TemplateName', 'Research Assistant', 'CreatedBy', parameters('createdBy'))))]"
314+
"tags": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags'), createObject('TemplateName', 'Research Assistant', 'CreatedBy', parameters('createdBy'))))]"
315315
}
316316
},
317317
"cogEndpointSecret": {
@@ -22463,10 +22463,10 @@
2246322463
}
2246422464
},
2246522465
"dependsOn": [
22466-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
22467-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
2246822466
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageDfs)]",
2246922467
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageFile)]",
22468+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
22469+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
2247022470
"userAssignedIdentity",
2247122471
"virtualNetwork"
2247222472
]
@@ -38337,8 +38337,8 @@
3833738337
}
3833838338
},
3833938339
"dependsOn": [
38340-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').machineLearningServices)]",
3834138340
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').notebook)]",
38341+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').machineLearningServices)]",
3834238342
"azOpenAI",
3834338343
"azSearchService",
3834438344
"existingOpenAI",

0 commit comments

Comments
 (0)