Skip to content

Commit d61e18d

Browse files
Merge branch 'main' into hb-deplywf-fix
2 parents 1fe0b5e + 6e48ce5 commit d61e18d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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."

infra/main.bicep

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ param enableTelemetry bool = true
136136
param 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
}

0 commit comments

Comments
 (0)