Skip to content

Commit b0f719c

Browse files
Add tag parameter
1 parent 4c4c7bb commit b0f719c

5 files changed

Lines changed: 15 additions & 13 deletions

File tree

infra/main.bicep

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,11 +1138,9 @@ module containerAppEnvironment 'br/public:avm/res/app/managed-environment:0.13.1
11381138
location: location
11391139
tags: {
11401140
...resourceGroup().tags
1141+
...existingTags
1142+
...allTags
11411143
...tags
1142-
TemplateName: 'MACAE'
1143-
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
1144-
CreatedBy: createdBy
1145-
DeploymentName: deployment().name
11461144
}
11471145
enableTelemetry: enableTelemetry
11481146
// WAF aligned configuration for Private Networking

infra/main.json

Lines changed: 3 additions & 3 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": "15501943451693952090"
9+
"templateHash": "1714347084428380969"
1010
},
1111
"name": "Multi-Agent Custom Automation Engine",
1212
"description": "This module contains the resources required to deploy the [Multi-Agent Custom Automation Engine solution accelerator](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator) for both Sandbox environments and WAF aligned environments.\r\n\r\n> **Note:** This module is not intended for broad, generic use, as it was designed by the Commercial Solution Areas CTO team, as a Microsoft Solution Accelerator. Feature requests and bug fix requests are welcome if they support the needs of this organization but may not be incorporated if they aim to make this module more generic than what it needs to be for its primary use case. This module will likely be updated to leverage AVM resource modules in the future. This may result in breaking changes in upcoming versions when these features are implemented.\r\n"
@@ -27973,9 +27973,9 @@
2797327973
},
2797427974
"dependsOn": [
2797527975
"aiFoundryAiServices",
27976-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
2797727976
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
2797827977
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
27978+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
2797927979
"virtualNetwork"
2798027980
]
2798127981
},
@@ -34109,7 +34109,7 @@
3410934109
"value": "[parameters('location')]"
3411034110
},
3411134111
"tags": {
34112-
"value": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags'), createObject('TemplateName', 'MACAE', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'), 'DeploymentName', deployment().name)))]"
34112+
"value": "[shallowMerge(createArray(resourceGroup().tags, variables('existingTags'), variables('allTags'), parameters('tags')))]"
3411334113
},
3411434114
"enableTelemetry": {
3411534115
"value": "[parameters('enableTelemetry')]"

infra/main.parameters.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
},
7474
"MCPContainerRegistryHostname": {
7575
"value": "${AZURE_ENV_CONTAINER_REGISTRY_ENDPOINT}"
76-
}
76+
},
77+
"tags": {
78+
"value": "${AZURE_ENV_TAGS}"
79+
}
7780
}
7881
}

infra/main.waf.parameters.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
},
9292
"MCPContainerRegistryHostname": {
9393
"value": "${AZURE_ENV_CONTAINER_REGISTRY_ENDPOINT}"
94-
}
94+
},
95+
"tags": {
96+
"value": "${AZURE_ENV_TAGS}"
97+
}
9598
}
9699
}

infra/main_custom.bicep

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,11 +1136,9 @@ module containerAppEnvironment 'br/public:avm/res/app/managed-environment:0.13.1
11361136
location: location
11371137
tags: {
11381138
...resourceGroup().tags
1139+
...existingTags
1140+
...allTags
11391141
...tags
1140-
TemplateName: 'MACAE'
1141-
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
1142-
CreatedBy: createdBy
1143-
DeploymentName: deployment().name
11441142
}
11451143
enableTelemetry: enableTelemetry
11461144
// WAF aligned configuration for Private Networking

0 commit comments

Comments
 (0)