File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ jobs:
142142 IMAGE_TAG="latest_waf"
143143 fi
144144
145+ # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
146+ current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
147+
145148 az deployment group create \
146149 --name ${{ env.SOLUTION_PREFIX }}-deployment \
147150 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -154,7 +157,8 @@ jobs:
154157 embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
155158 azureAiServiceLocation=${{ env.AZURE_AI_LOCATION }} \
156159 imageTag="${IMAGE_TAG}"\
157- createdBy="Pipeline"
160+ createdBy="Pipeline" \
161+ tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
158162
159163 - name : Get Deployment Output and extract Values
160164 id : get_output
@@ -410,4 +414,4 @@ jobs:
410414 if : always()
411415 run : |
412416 az logout
413- echo "Logged out from Azure."
417+ echo "Logged out from Azure."
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ param enableTelemetry bool = true
136136param enablePurgeProtection bool = false
137137
138138@description ('Optional created by user name' )
139- param createdBy string = empty (deployer ().userPrincipalName ) ? '' : split (deployer ().userPrincipalName , '@' )[0 ]
139+ param createdBy string = contains (deployer (), 'userPrincipalName' )? split (deployer ().userPrincipalName , '@' )[0 ]: deployer ().objectId
140+
140141
141142// ============== //
142143// Variables //
@@ -269,7 +270,8 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
269270 properties : {
270271 tags : {
271272 ... tags
272- TemplateName : 'Docgen'
273+ TemplateName : 'DocGen'
274+ Type : enablePrivateNetworking ? 'WAF' : 'Non-WAF'
273275 CreatedBy : createdBy
274276 }
275277 }
You can’t perform that action at this time.
0 commit comments