File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ jobs:
135135 aiDeploymentsLocation="eastus" \
136136 useWafAlignedArchitecture=false \
137137 capacity=${{ env.GPT_MIN_CAPACITY }} \
138- imageVersion="${IMAGE_TAG}" \
138+ imageVersion="${IMAGE_TAG}"\
139139 createdBy="Pipeline"
140140 - name : Assign Contributor role to Service Principal
141141 if : always()
Original file line number Diff line number Diff line change @@ -132,8 +132,9 @@ var modelDeployment = {
132132
133133var abbrs = loadJsonContent ('./abbreviations.json' )
134134
135- @description ('Optional created by user name' )
136- param createdBy string = empty (deployer ().userPrincipalName ) ? '' : split (deployer ().userPrincipalName , '@' )[0 ]
135+ @description ('Tag, Created by user name' )
136+ param createdBy string = contains (deployer (), 'userPrincipalName' )? split (deployer ().userPrincipalName , '@' )[0 ]: deployer ().objectId
137+
137138
138139// ========== Resource Group Tag ========== //
139140resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
You can’t perform that action at this time.
0 commit comments