From ed094679ae9c60bf7d6f8d3078459b430d47d95a Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Inc)" Date: Mon, 22 Sep 2025 16:00:39 +0530 Subject: [PATCH 1/3] Remove Createdby Parameter from deploy.yml and change logic in bicep --- .github/workflows/deploy.yml | 1 - infra/main.bicep | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11f4dd947..82f0941b1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -137,7 +137,6 @@ jobs: imageTag="${IMAGE_TAG}" \ azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \ gptModelCapacity=150 \ - createdBy="Pipeline" \ --output json - name: Extract Web App and API App URLs diff --git a/infra/main.bicep b/infra/main.bicep index dd7a907aa..08065582a 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -170,8 +170,8 @@ var allTags = union( }, tags ) -@description('Optional created by user name') -param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0] +param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId + resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { name: 'default' From c6962b515b434433fe960fad2177c63df8f87e8c Mon Sep 17 00:00:00 2001 From: NirajC-Microsoft Date: Mon, 22 Sep 2025 22:22:50 +0530 Subject: [PATCH 2/3] Update deploy.yml to include createdBy parameter --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 82f0941b1..11f4dd947 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -137,6 +137,7 @@ jobs: imageTag="${IMAGE_TAG}" \ azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \ gptModelCapacity=150 \ + createdBy="Pipeline" \ --output json - name: Extract Web App and API App URLs From 28a6e0bb77e9c0d53c449c5442d7fb43ee1606d5 Mon Sep 17 00:00:00 2001 From: NirajC-Microsoft Date: Tue, 23 Sep 2025 15:44:21 +0530 Subject: [PATCH 3/3] Add createdBy parameter with description --- infra/main.bicep | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/main.bicep b/infra/main.bicep index 08065582a..3322c1699 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -170,6 +170,7 @@ var allTags = union( }, tags ) +@description('Tag, Created by user name') param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId