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.
1 parent 407b9cb commit 314070aCopy full SHA for 314070a
infra/main.bicep
@@ -223,8 +223,8 @@ var allTags = union(
223
},
224
tags
225
)
226
-@description('Optional created by user name')
227
-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
228
229
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
230
name: 'default'
0 commit comments