Skip to content

Commit 6e48ce5

Browse files
Merge pull request #567 from microsoft/dev
fix: Dev to main
2 parents afcafff + 3d46cf2 commit 6e48ce5

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- main
1010
- dev
1111
- demo
12-
1312
schedule:
1413
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
1514

@@ -135,6 +134,9 @@ jobs:
135134
IMAGE_TAG="latest_waf"
136135
fi
137136
137+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
138+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
139+
138140
az deployment group create \
139141
--name ${{ env.SOLUTION_PREFIX }}-deployment \
140142
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -150,7 +152,8 @@ jobs:
150152
embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
151153
azureAiServiceLocation=${{ env.AZURE_LOCATION }} \
152154
imageTag="${IMAGE_TAG}"\
153-
createdBy="Pipeline"
155+
createdBy="Pipeline" \
156+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
154157
155158
- name: Get Deployment Output and extract Values
156159
id: get_output
@@ -406,4 +409,4 @@ jobs:
406409
if: always()
407410
run: |
408411
az logout
409-
echo "Logged out from Azure."
412+
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)