Skip to content

Commit ed09467

Browse files
Remove Createdby Parameter from deploy.yml and change logic in bicep
1 parent 287ef57 commit ed09467

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ jobs:
137137
imageTag="${IMAGE_TAG}" \
138138
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
139139
gptModelCapacity=150 \
140-
createdBy="Pipeline" \
141140
--output json
142141
143142
- name: Extract Web App and API App URLs

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ var allTags = union(
170170
},
171171
tags
172172
)
173-
@description('Optional created by user name')
174-
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
173+
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
174+
175175

176176
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
177177
name: 'default'

0 commit comments

Comments
 (0)