File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -105,15 +105,16 @@ var solutionSuffix = toLower(trim(replace(
105105@description ('Optional. The tags to apply to all deployed Azure resources.' )
106106param 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 ========== //
110111resource 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}
You can’t perform that action at this time.
0 commit comments