Skip to content

Commit 503c3d8

Browse files
Merge pull request #602 from microsoft/CI-Pipeline-kmgen
fix: CI Pipeline Validate Deployment - KmGen
2 parents b2326f6 + e349ce6 commit 503c3d8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy-KMGeneric.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,14 @@ jobs:
117117
id: deploy
118118
run: |
119119
set -e
120+
121+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
122+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
123+
120124
az deployment group create \
121125
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
122126
--template-file infra/main.bicep \
123-
--parameters solutionName=${{env.SOLUTION_PREFIX}} contentUnderstandingLocation="swedencentral" secondaryLocation="${{ env.AZURE_LOCATION }}" imageTag=${{ steps.determine_tag.outputs.tagname }} gptDeploymentCapacity=150 azureAiServiceLocation="${{ env.AZURE_LOCATION }}" createdBy="Pipeline" tags="{'SecurityControl':'Ignore'}"
127+
--parameters solutionName=${{env.SOLUTION_PREFIX}} contentUnderstandingLocation="swedencentral" secondaryLocation="${{ env.AZURE_LOCATION }}" imageTag=${{ steps.determine_tag.outputs.tagname }} gptDeploymentCapacity=150 azureAiServiceLocation="${{ env.AZURE_LOCATION }}" createdBy="Pipeline" tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
124128
125129
126130

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
218218
'Full'
219219
).tags ?? {},
220220
{
221-
TemplateName: 'KM Generic'
221+
TemplateName: 'KM-Generic'
222+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
222223
CreatedBy: createdBy
223224
},
224225
tags

0 commit comments

Comments
 (0)