Skip to content

Commit d6d8ee6

Browse files
Merge pull request #466 from microsoft/dev
fix: Dev to main
2 parents 13332ef + dcd3799 commit d6d8ee6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ jobs:
190190
id: deploy
191191
run: |
192192
set -e
193+
194+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
195+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
196+
193197
az deployment group create \
194198
--name ${{ env.SOLUTION_PREFIX }}-deployment \
195199
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -210,7 +214,8 @@ jobs:
210214
enableTelemetry=true \
211215
enableRedundancy=false \
212216
enableScalability=false \
213-
createdBy="Pipeline"
217+
createdBy="Pipeline" \
218+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
214219
215220
- name: Get Deployment Output and extract Values
216221
id: get_output

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ param enableScalability bool = false
104104
param aiDeploymentsLocation string
105105

106106
@description('Optional created by user name')
107-
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
107+
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
108108

109109
// ========== Resource Group Tag ========== //
110110
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
@@ -113,6 +113,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
113113
tags: {
114114
...tags
115115
TemplateName: 'DKM'
116+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
116117
CreatedBy: createdBy
117118
}
118119
}

0 commit comments

Comments
 (0)