Skip to content

Commit 8c9a95f

Browse files
Merge pull request #531 from microsoft/dev-v3
fix: added new 'type' tag and exp changes related to key vault
2 parents b127dcc + dae3a10 commit 8c9a95f

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/deploy-waf.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ jobs:
105105
id: deploy
106106
run: |
107107
set -e
108+
109+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
110+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
111+
108112
az deployment group create \
109113
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
110114
--template-file infra/main.bicep \
@@ -118,6 +122,7 @@ jobs:
118122
enablePrivateNetworking=true \
119123
enableScalability=true \
120124
createdBy="Pipeline" \
125+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
121126
122127
123128
- name: Send Notification on Failure

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ jobs:
125125
IMAGE_TAG="latest"
126126
fi
127127
128+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
129+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
130+
128131
az deployment group create \
129132
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
130133
--template-file infra/main.bicep \
@@ -139,6 +142,7 @@ jobs:
139142
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
140143
gptModelCapacity=150 \
141144
createdBy="Pipeline" \
145+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" \
142146
--output json
143147
144148
- name: Extract Web App and API App URLs

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
232232
tags: {
233233
...allTags
234234
TemplateName: 'MACAE'
235+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
235236
CreatedBy: createdBy
236237
}
237238
}
@@ -2020,7 +2021,7 @@ module keyvault 'br/public:avm/res/key-vault/vault:0.12.1' = {
20202021
enableSoftDelete: true
20212022
softDeleteRetentionInDays: 7
20222023
diagnosticSettings: enableMonitoring
2023-
? [{ workspaceResourceId: logAnalyticsWorkspace!.outputs.resourceId }]
2024+
? [{ workspaceResourceId: logAnalyticsWorkspaceResourceId }]
20242025
: []
20252026
// WAF aligned configuration for Private Networking
20262027
privateEndpoints: enablePrivateNetworking

infra/main_custom.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
232232
tags: {
233233
...allTags
234234
TemplateName: 'MACAE'
235+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
235236
CreatedBy: createdBy
236237
}
237238
}
@@ -2061,7 +2062,7 @@ module keyvault 'br/public:avm/res/key-vault/vault:0.12.1' = {
20612062
enableSoftDelete: true
20622063
softDeleteRetentionInDays: 7
20632064
diagnosticSettings: enableMonitoring
2064-
? [{ workspaceResourceId: logAnalyticsWorkspace!.outputs.resourceId }]
2065+
? [{ workspaceResourceId: logAnalyticsWorkspaceResourceId }]
20652066
: []
20662067
// WAF aligned configuration for Private Networking
20672068
privateEndpoints: enablePrivateNetworking

0 commit comments

Comments
 (0)