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 55 - main # Adjust this to the branch you want to trigger the deployment on
66 - dev
77 - demo
8+ - CI-Pipeline-dkm
89 schedule :
910 - cron : " 0 10,22 * * *" # Runs at 10:00 AM and 10:00 PM GMT
1011
@@ -190,6 +191,10 @@ jobs:
190191 id : deploy
191192 run : |
192193 set -e
194+
195+ # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
196+ current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
197+
193198 az deployment group create \
194199 --name ${{ env.SOLUTION_PREFIX }}-deployment \
195200 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -210,7 +215,8 @@ jobs:
210215 enableTelemetry=true \
211216 enableRedundancy=false \
212217 enableScalability=false \
213- createdBy="Pipeline"
218+ createdBy="Pipeline" \
219+ tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
214220
215221 - name : Get Deployment Output and extract Values
216222 id : get_output
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
112112 properties : {
113113 tags : {
114114 ...tags
115- TemplateName : 'DKM'
115+ TemplateName : enablePrivateNetworking ? 'DKM-WAF' : 'DKM'
116116 CreatedBy : createdBy
117117 }
118118 }
You can’t perform that action at this time.
0 commit comments