Skip to content

Commit 62b6009

Browse files
Merge pull request #565 from microsoft/psl-Pipelinefix
fix: Remove createdby from pipeline and change logic for Createdby tag in …
2 parents afcafff + d719b79 commit 62b6009

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,4 +406,4 @@ jobs:
406406
if: always()
407407
run: |
408408
az logout
409-
echo "Logged out from Azure."
409+
echo "Logged out from Azure."

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ param enableTelemetry bool = true
136136
param enablePurgeProtection bool = false
137137

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

141142
// ============== //
142143
// Variables //

0 commit comments

Comments
 (0)