Skip to content
19 changes: 19 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,25 @@ var replicaLocation = replicaRegionPairs[location]
// Resources //
// ============== //

var deployerInfo = deployer()
var allTags = union(
{
'azd-env-name': solutionName
},
tags
)
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
name: 'default'
properties: {
tags: {
...allTags
TemplateName: 'MACAE'
CreatedBy: split(deployerInfo.userPrincipalName, '@')[0]
}
}
}


#disable-next-line no-deployments-resources
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
name: '46d3xbcp.ptn.sa-multiagentcustauteng.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
Expand Down
Loading