File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,10 @@ jobs:
190190 id : deploy
191191 run : |
192192 set -e
193+
194+ # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
195+ current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
196+
193197 az deployment group create \
194198 --name ${{ env.SOLUTION_PREFIX }}-deployment \
195199 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -210,7 +214,8 @@ jobs:
210214 enableTelemetry=true \
211215 enableRedundancy=false \
212216 enableScalability=false \
213- createdBy="Pipeline"
217+ createdBy="Pipeline" \
218+ tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
214219
215220 - name : Get Deployment Output and extract Values
216221 id : get_output
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ param enableScalability bool = false
104104param aiDeploymentsLocation string
105105
106106@description ('Optional created by user name' )
107- param createdBy string = empty (deployer (). userPrincipalName ) ? '' : split (deployer ().userPrincipalName , '@' )[0 ]
107+ param createdBy string = contains (deployer (), ' userPrincipalName' )? split (deployer ().userPrincipalName , '@' )[0 ]: deployer (). objectId
108108
109109// ========== Resource Group Tag ========== //
110110resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
@@ -113,6 +113,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
113113 tags : {
114114 ...tags
115115 TemplateName : 'DKM'
116+ Type : enablePrivateNetworking ? 'WAF' : 'Non-WAF'
116117 CreatedBy : createdBy
117118 }
118119 }
You can’t perform that action at this time.
0 commit comments