diff --git a/infra/main.bicep b/infra/main.bicep index 1dedef24..33bf049f 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -334,6 +334,8 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { name: 'default' properties: { tags: { + ...resourceGroup().tags + ...tags TemplateName: 'Content Processing' Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF' CreatedBy: createdBy diff --git a/infra/main.json b/infra/main.json index c6f5d426..e8202bd8 100644 --- a/infra/main.json +++ b/infra/main.json @@ -6,7 +6,7 @@ "_generator": { "name": "bicep", "version": "0.37.4.10188", - "templateHash": "10045374231657176554" + "templateHash": "14310770063360835011" }, "name": "Content Processing Solution Accelerator", "description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance." @@ -287,11 +287,7 @@ "apiVersion": "2021-04-01", "name": "default", "properties": { - "tags": { - "TemplateName": "Content Processing", - "Type": "[if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF')]", - "CreatedBy": "[parameters('createdBy')]" - } + "tags": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags'), createObject('TemplateName', 'Content Processing', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'))))]" } }, "virtualNetwork": { @@ -38710,10 +38706,10 @@ "dependsOn": [ "avmContainerApp", "avmManagedIdentity", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", "logAnalyticsWorkspace", "virtualNetwork" ] @@ -41051,8 +41047,8 @@ "dependsOn": [ "avmContainerApp", "avmManagedIdentity", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", "virtualNetwork" ] },