Skip to content

Commit a0f3944

Browse files
Bicep file changes to add CreatedBy tag (#655)
1 parent ccc16de commit a0f3944

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra/main.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,15 @@ param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags =
177177

178178
var aiFoundryAiServicesAiProjectResourceName = 'proj-${solutionSuffix}'
179179

180+
var deployerInfo = deployer()
180181
// ========== Resource Group Tag ========== //
181182
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
182183
name: 'default'
183184
properties: {
184185
tags: {
185186
...tags
186187
TemplateName: 'Client Advisor'
188+
CreatedBy: split(deployerInfo.userPrincipalName, '@')[0]
187189
}
188190
}
189191
}

0 commit comments

Comments
 (0)