Skip to content

Commit 6941f66

Browse files
Remove createdby from pipeline and change logic for Createdby tag in bicep
1 parent afcafff commit 6941f66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ jobs:
149149
embeddingModel="text-embedding-ada-002" \
150150
embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
151151
azureAiServiceLocation=${{ env.AZURE_LOCATION }} \
152-
imageTag="${IMAGE_TAG}"\
153-
createdBy="Pipeline"
152+
imageTag="${IMAGE_TAG}"
154153
155154
- name: Get Deployment Output and extract Values
156155
id: get_output

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)