Skip to content

Commit 2d4bb88

Browse files
Bicep file changes to add createdBy tag (#656)
1 parent 484d6c2 commit 2d4bb88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra/bicep/main.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ var subscriptionId = subscription().subscriptionId
1616
var solutionLocation = resourceGroupLocation
1717
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Build-your-own-copilot-Solution-Accelerator/byoc-researcher/'
1818

19+
var deployerInfo = deployer()
1920
// ========== Resource Group Tag ========== //
2021
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
2122
name: 'default'
2223
properties: {
2324
tags: {
2425
TemplateName: 'Research Assistant'
26+
CreatedBy: split(deployerInfo.userPrincipalName, '@')[0]
2527
}
2628
}
2729
}

0 commit comments

Comments
 (0)