Skip to content

Commit f7fc4a1

Browse files
Merge pull request #465 from microsoft/psl-PipelineFix
fix: Change CreatedBy tag logic in bicep
2 parents 4027b26 + eaddd81 commit f7fc4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ param enableScalability bool = false
104104
param aiDeploymentsLocation string
105105

106106
@description('Optional created by user name')
107-
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
107+
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
108108

109109
// ========== Resource Group Tag ========== //
110110
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {

0 commit comments

Comments
 (0)