We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 287ef57 + 28a6e0b commit cb448daCopy full SHA for cb448da
infra/main.bicep
@@ -170,8 +170,9 @@ var allTags = union(
170
},
171
tags
172
)
173
-@description('Optional created by user name')
174
-param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
+@description('Tag, Created by user name')
+param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
175
+
176
177
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
178
name: 'default'
0 commit comments