diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index adf73240..9d54a82d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -126,6 +126,9 @@ jobs: IMAGE_TAG="latest" fi + # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ + current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ") + az deployment group create \ --name ${{ env.SOLUTION_PREFIX }}-deployment \ --resource-group ${{ env.RESOURCE_GROUP_NAME }} \ @@ -135,8 +138,10 @@ jobs: aiDeploymentsLocation="eastus" \ useWafAlignedArchitecture=false \ capacity=${{ env.GPT_MIN_CAPACITY }} \ - imageVersion="${IMAGE_TAG}"\ - createdBy="Pipeline" + imageVersion="${IMAGE_TAG}" \ + createdBy="Pipeline" \ + tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" + - name: Assign Contributor role to Service Principal if: always() run: | diff --git a/infra/main.bicep b/infra/main.bicep index 7495e9f7..4e73a7bf 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -143,6 +143,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { tags: { ...allTags TemplateName: 'Code Modernization' + Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF' CreatedBy: createdBy } }