Skip to content

Commit d940bb1

Browse files
Add createdDate parameter for deployment timestamp
1 parent 8721a32 commit d940bb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

infra/main.bicep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ var abbrs = loadJsonContent('./abbreviations.json')
136136

137137
@description('Optional created by user name')
138138
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
139-
139+
@description('Deployment UTC timestamp')
140+
param createdDate string ='yyyy-MM-ddTHH:mm:ssZ'
140141
// ========== Resource Group Tag ========== //
141142
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
142143
name: 'default'
@@ -145,6 +146,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
145146
...allTags
146147
TemplateName: 'Code Modernization'
147148
CreatedBy: createdBy
149+
CreatedDate:createdDate
148150
}
149151
}
150152
}

0 commit comments

Comments
 (0)