Skip to content

Commit b2326f6

Browse files
Merge pull request #601 from microsoft/psl-PipelineFix
fix: Remove createdby from pipeline and change CreatedBy logic in bicep file
2 parents 5b8d6ce + d9f95ef commit b2326f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ param existingLogAnalyticsWorkspaceId string = ''
151151
param existingAiFoundryAiProjectResourceId string = ''
152152

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

156157
@maxLength(5)
157158
@description('Optional. A unique text value for the solution. This is used to ensure resource names are unique for global resources. Defaults to a 5-character substring of the unique string generated from the subscription ID, resource group name, and solution name.')

0 commit comments

Comments
 (0)