Skip to content

Commit 7b0c353

Browse files
fixed CI Pipeline Validate Deployment - KmGen
1 parent ca75e7d commit 7b0c353

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
217217
'Full'
218218
).tags ?? {},
219219
{
220-
TemplateName: 'KM Generic'
220+
TemplateName: enablePrivateNetworking ? 'KM-Generic-WAF' : 'KM-Generic'
221221
CreatedBy: createdBy
222222
},
223223
tags

0 commit comments

Comments
 (0)