diff --git a/infra/main.bicep b/infra/main.bicep index 5c0225d3..d0ff499c 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -913,7 +913,12 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.13. } ] : [] - tags: allTags + tags: { + ...resourceGroup().tags + ...existingTags + ...allTags + ...tags + } enableTelemetry: enableTelemetry } } diff --git a/infra/main.json b/infra/main.json index 9c214401..f6264d11 100644 --- a/infra/main.json +++ b/infra/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "501598761594202073" + "version": "0.43.8.12551", + "templateHash": "8585032922389535481" }, "name": "Modernize Your Code Solution Accelerator", "description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \r\n" @@ -5093,8 +5093,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "15922750226218572834" + "version": "0.43.8.12551", + "templateHash": "14487392921976794826" } }, "definitions": { @@ -13101,11 +13101,11 @@ }, "dependsOn": [ "applicationInsights", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').agentSvc)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').ods)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').oms)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').agentSvc)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').monitor)]", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').ods)]", "dataCollectionEndpoint", "logAnalyticsWorkspace", "virtualNetwork" @@ -26168,8 +26168,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "7788164101952925462" + "version": "0.43.8.12551", + "templateHash": "5833130864503278162" }, "name": "AI Services and Project Module", "description": "This module creates an AI Services resource and an AI Foundry project within it. It supports private networking, OpenAI deployments, and role assignments." @@ -27466,8 +27466,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "3451497265231138743" + "version": "0.43.8.12551", + "templateHash": "427786211377533956" } }, "definitions": { @@ -29176,8 +29176,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "6439859910553532577" + "version": "0.43.8.12551", + "templateHash": "9014582203949799641" } }, "definitions": { @@ -29391,8 +29391,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "3451497265231138743" + "version": "0.43.8.12551", + "templateHash": "427786211377533956" } }, "definitions": { @@ -31101,8 +31101,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "6439859910553532577" + "version": "0.43.8.12551", + "templateHash": "9014582203949799641" } }, "definitions": { @@ -32017,9 +32017,9 @@ }, "dependsOn": [ "aiServices", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", "virtualNetwork" ] }, @@ -32075,8 +32075,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "3598447245043879538" + "version": "0.43.8.12551", + "templateHash": "12228537903958998388" } }, "definitions": { @@ -40529,8 +40529,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "14534421541012182178" + "version": "0.43.8.12551", + "templateHash": "15722739321567421405" } }, "definitions": { @@ -46827,7 +46827,7 @@ "appLogsConfiguration": "[if(parameters('enableMonitoring'), createObject('value', createObject('destination', 'log-analytics', 'logAnalyticsWorkspaceResourceId', if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), reference('logAnalyticsWorkspace').outputs.resourceId.value), 'logAnalyticsConfiguration', createObject('customerId', if(variables('useExistingLogAnalytics'), reference('existingLogAnalyticsWorkspace').customerId, reference('logAnalyticsWorkspace').outputs.logAnalyticsWorkspaceId.value), 'sharedKey', if(variables('useExistingLogAnalytics'), listKeys('existingLogAnalyticsWorkspace', '2025-07-01').primarySharedKey, listOutputsWithSecureValues('logAnalyticsWorkspace', '2025-04-01').primarySharedKey)))), createObject('value', null()))]", "workloadProfiles": "[if(parameters('enablePrivateNetworking'), createObject('value', createArray(createObject('name', 'Consumption', 'workloadProfileType', 'Consumption'))), createObject('value', createArray()))]", "tags": { - "value": "[variables('allTags')]" + "value": "[shallowMerge(createArray(resourceGroup().tags, variables('existingTags'), variables('allTags'), parameters('tags')))]" }, "enableTelemetry": { "value": "[parameters('enableTelemetry')]" diff --git a/infra/main.parameters.json b/infra/main.parameters.json index 2d38a529..712bbee7 100644 --- a/infra/main.parameters.json +++ b/infra/main.parameters.json @@ -46,6 +46,9 @@ }, "vmAdminPassword": { "value": "${AZURE_ENV_VM_ADMIN_PASSWORD}" - } + }, + "tags": { + "value": "${AZURE_ENV_TAGS}" + } } } \ No newline at end of file diff --git a/infra/main.waf.parameters.json b/infra/main.waf.parameters.json index 7d9f2f32..f8671c42 100644 --- a/infra/main.waf.parameters.json +++ b/infra/main.waf.parameters.json @@ -55,6 +55,9 @@ }, "enableScalability": { "value": true - } + }, + "tags": { + "value": "${AZURE_ENV_TAGS}" + } } } \ No newline at end of file diff --git a/infra/main_custom.bicep b/infra/main_custom.bicep index 938ca3e5..5729b48c 100644 --- a/infra/main_custom.bicep +++ b/infra/main_custom.bicep @@ -856,7 +856,12 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.13. } ] : [] - tags: allTags + tags: { + ...resourceGroup().tags + ...existingTags + ...allTags + ...tags + } enableTelemetry: enableTelemetry } }