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 4027b26 + eaddd81 commit f7fc4a1Copy full SHA for f7fc4a1
infra/main.bicep
@@ -104,7 +104,7 @@ param enableScalability bool = false
104
param aiDeploymentsLocation string
105
106
@description('Optional created by user name')
107
-param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
+param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
108
109
// ========== Resource Group Tag ========== //
110
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
0 commit comments