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