Skip to content

Commit 668501d

Browse files
Merge pull request #554 from microsoft/dev
chore: dev to main
2 parents beb9497 + 49cb1f0 commit 668501d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ jobs:
149149
embeddingModel="text-embedding-ada-002" \
150150
embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
151151
aiDeploymentsLocation=${{ env.AZURE_LOCATION }} \
152-
imageTag="${IMAGE_TAG}"
152+
imageTag="${IMAGE_TAG}"\
153+
createdBy="Pipeline"
153154
154155
- name: Get Deployment Output and extract Values
155156
id: get_output

infra/main.bicep

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,16 @@ var solutionSuffix = toLower(trim(replace(
105105
@description('Optional. The tags to apply to all deployed Azure resources.')
106106
param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = {}
107107

108-
var deployerInfo = deployer()
108+
@description('Optional created by user name')
109+
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
109110
// ========== Resource Group Tag ========== //
110111
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
111112
name: 'default'
112113
properties: {
113114
tags: {
114115
... tags
115116
TemplateName: 'Docgen'
116-
CreatedBy: split(deployerInfo.userPrincipalName, '@')[0]
117+
CreatedBy: createdBy
117118
}
118119
}
119120
}

0 commit comments

Comments
 (0)