File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ jobs:
135135 aiDeploymentsLocation="eastus" \
136136 useWafAlignedArchitecture=false \
137137 capacity=${{ env.GPT_MIN_CAPACITY }} \
138- imageVersion="${IMAGE_TAG}"
138+ imageVersion="${IMAGE_TAG}" \
139+ createdBy="Pipeline"
139140
140141 - name : Get Deployment Output and extract Values
141142 id : get_output
Original file line number Diff line number Diff line change @@ -134,13 +134,17 @@ 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 ]
139+
137140// ========== Resource Group Tag ========== //
138141resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
139142 name : 'default'
140143 properties : {
141144 tags : {
142145 ...allTags
143146 TemplateName : 'Code Modernization'
147+ CreatedBy : createdBy
144148 }
145149 }
146150}
You can’t perform that action at this time.
0 commit comments