Skip to content

Commit 679adf2

Browse files
Remove createdby from pipeline and changes bicep logic for createdBy tag
1 parent 835f606 commit 679adf2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ jobs:
135135
aiDeploymentsLocation="eastus" \
136136
useWafAlignedArchitecture=false \
137137
capacity=${{ env.GPT_MIN_CAPACITY }} \
138-
imageVersion="${IMAGE_TAG}" \
139-
createdBy="Pipeline"
138+
imageVersion="${IMAGE_TAG}"
140139
- name: Assign Contributor role to Service Principal
141140
if: always()
142141
run: |

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ 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]
137+
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
138+
139139

140140
// ========== Resource Group Tag ========== //
141141
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {

0 commit comments

Comments
 (0)