Skip to content

Commit 46c19d8

Browse files
Add tag parameter
1 parent 5c3ff94 commit 46c19d8

5 files changed

Lines changed: 12 additions & 14 deletions

File tree

infra/main.bicep

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,6 @@ module avmContainerAppEnv 'br/public:avm/res/app/managed-environment:0.13.2' = {
829829
tags: {
830830
...resourceGroup().tags
831831
...tags
832-
TemplateName: 'Content Processing'
833-
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
834-
CreatedBy: createdBy
835-
DeploymentName: deployment().name
836832
}
837833
managedIdentities: { systemAssigned: true }
838834
appLogsConfiguration: enableMonitoring

infra/main.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.43.8.12551",
9-
"templateHash": "10672198332480851690"
9+
"templateHash": "14892051102514442895"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -36177,8 +36177,8 @@
3617736177
"avmContainerApp_API",
3617836178
"avmContainerApp_Workflow",
3617936179
"avmManagedIdentity",
36180-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3618136180
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
36181+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3618236182
"virtualNetwork"
3618336183
]
3618436184
},
@@ -42481,10 +42481,10 @@
4248142481
},
4248242482
"dependsOn": [
4248342483
"avmAiServices",
42484+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
4248442485
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4248542486
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
4248642487
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
42487-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
4248842488
"virtualNetwork"
4248942489
]
4249042490
},
@@ -42505,7 +42505,7 @@
4250542505
"value": "[parameters('location')]"
4250642506
},
4250742507
"tags": {
42508-
"value": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags'), createObject('TemplateName', 'Content Processing', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'), 'DeploymentName', deployment().name)))]"
42508+
"value": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags')))]"
4250942509
},
4251042510
"managedIdentities": {
4251142511
"value": {

infra/main.parameters.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
},
3535
"imageTag": {
3636
"value": "${AZURE_ENV_IMAGETAG=latest_v2}"
37-
}
37+
},
38+
"tags": {
39+
"value": "${AZURE_ENV_TAGS}"
40+
}
3841
}
3942
}

infra/main.waf.parameters.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
},
5353
"imageTag": {
5454
"value": "${AZURE_ENV_IMAGETAG=latest_v2}"
55-
}
55+
},
56+
"tags": {
57+
"value": "${AZURE_ENV_TAGS}"
58+
}
5659
}
5760
}

infra/main_custom.bicep

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -832,10 +832,6 @@ module avmContainerAppEnv 'br/public:avm/res/app/managed-environment:0.13.2' = {
832832
tags: {
833833
...resourceGroup().tags
834834
...tags
835-
TemplateName: 'Content Processing'
836-
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
837-
CreatedBy: createdBy
838-
DeploymentName: deployment().name
839835
}
840836
managedIdentities: { systemAssigned: true }
841837
appLogsConfiguration: enableMonitoring

0 commit comments

Comments
 (0)