Skip to content

Commit dd152bd

Browse files
Merge pull request #206 from microsoft/dev
chore: Dev to Main changes merge
2 parents aa1f675 + 8721a32 commit dd152bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ jobs:
135135
aiDeploymentsLocation="eastus" \
136136
useWafAlignedArchitecture=false \
137137
capacity=${{ env.GPT_MIN_CAPACITY }} \
138-
imageVersion="${IMAGE_TAG}"
138+
imageVersion="${IMAGE_TAG}" \
139+
createdBy="Pipeline"
139140
140141
- name: Get Deployment Output and extract Values
141142
id: get_output

infra/main.bicep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,17 @@ var modelDeployment = {
134134

135135
var abbrs = loadJsonContent('./abbreviations.json')
136136

137+
@description('Optional created by user name')
138+
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
139+
137140
// ========== Resource Group Tag ========== //
138141
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
139142
name: 'default'
140143
properties: {
141144
tags: {
142145
...allTags
143146
TemplateName: 'Code Modernization'
147+
CreatedBy: createdBy
144148
}
145149
}
146150
}

0 commit comments

Comments
 (0)