Skip to content

Commit 74470e7

Browse files
feat: Added created by in the tags
1 parent 962f0c1 commit 74470e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

infra/main.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,21 @@ param enableScalability bool = false
103103
@description('Required. Location for AI Foundry deployment. This is the location where the AI Foundry resources will be deployed.')
104104
param aiDeploymentsLocation string
105105

106+
@description('Optional created by user name')
107+
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
108+
109+
// ========== Resource Group Tag ========== //
110+
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
111+
name: 'default'
112+
properties: {
113+
tags: {
114+
...tags
115+
TemplateName: 'DKM'
116+
CreatedBy: createdBy
117+
}
118+
}
119+
}
120+
106121
var solutionLocation = empty(location) ? resourceGroup().location : location
107122

108123
// @description('Optional. Key vault reference and secret settings for the module\'s secrets export.')

0 commit comments

Comments
 (0)