From 314070ae9b0ca0c8a3a3eec7845ad0bf87b30c7f Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Inc)" Date: Tue, 23 Sep 2025 16:18:09 +0530 Subject: [PATCH 1/3] Update Created by tag logic --- infra/main.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index eae09eacb..33af6fb38 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -223,8 +223,8 @@ var allTags = union( }, tags ) -@description('Optional created by user name') -param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0] +@description('Tag, Created by user name') +param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { name: 'default' From 4339834795d0b36577c1d7afd0669d18928deeb0 Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Inc)" Date: Tue, 23 Sep 2025 16:31:29 +0530 Subject: [PATCH 2/3] update createdby tag logic in main_custom.bicep --- infra/main_custom.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/main_custom.bicep b/infra/main_custom.bicep index dfb8f7711..c84319d70 100644 --- a/infra/main_custom.bicep +++ b/infra/main_custom.bicep @@ -223,8 +223,8 @@ var allTags = union( }, tags ) -@description('Optional created by user name') -param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0] +@description('Tag, Created by user name') +param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { name: 'default' From 0dcc144cb2f60153102396c31b54df19c69a86db Mon Sep 17 00:00:00 2001 From: Dhruvkumar-Microsoft Date: Tue, 23 Sep 2025 16:49:26 +0530 Subject: [PATCH 3/3] added the exp foundry project variables --- infra/main.bicep | 4 ++-- infra/main_custom.bicep | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index 33af6fb38..9895f3c2a 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -1559,11 +1559,11 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = { } { name: 'AZURE_AI_SUBSCRIPTION_ID' - value: subscription().subscriptionId + value: aiFoundryAiServicesSubscriptionId } { name: 'AZURE_AI_RESOURCE_GROUP' - value: resourceGroup().name + value: aiFoundryAiServicesResourceGroupName } { name: 'AZURE_AI_PROJECT_NAME' diff --git a/infra/main_custom.bicep b/infra/main_custom.bicep index c84319d70..f01568b53 100644 --- a/infra/main_custom.bicep +++ b/infra/main_custom.bicep @@ -1591,11 +1591,11 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = { } { name: 'AZURE_AI_SUBSCRIPTION_ID' - value: subscription().subscriptionId + value: aiFoundryAiServicesSubscriptionId } { name: 'AZURE_AI_RESOURCE_GROUP' - value: resourceGroup().name + value: aiFoundryAiServicesResourceGroupName } { name: 'AZURE_AI_PROJECT_NAME'