From be917e6fbee66c2d020d35c59035aa19d399b006 Mon Sep 17 00:00:00 2001 From: Shreyas-Microsoft Date: Mon, 17 Nov 2025 18:52:15 +0530 Subject: [PATCH 1/3] add createdBy param in ci.yml --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 922ef82e..3e943c33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: - main - dev - demo + pull_request: + branches: + - dev schedule: - cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT workflow_dispatch: # Allow manual triggering @@ -113,7 +116,8 @@ jobs: --parameters solutionName=${{env.SOLUTION_PREFIX}} \ --parameters location=${{ env.AZURE_LOCATION }} \ --parameters aiDeploymentLocation=${{ env.AZURE_LOCATION }} \ - --parameters azureAiServiceLocation=${{ env.AZURE_LOCATION }} + --parameters azureAiServiceLocation=${{ env.AZURE_LOCATION }} \ + --createdBy="pipeline" \ - name: Extract AI Services and Key Vault Names From 2cace4b83e4e9dcf433dcf7f46bc4ae08c45f558 Mon Sep 17 00:00:00 2001 From: Shreyas-Microsoft Date: Mon, 17 Nov 2025 18:55:04 +0530 Subject: [PATCH 2/3] add parameters as prefix --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e943c33..cf80c126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,7 @@ jobs: --parameters location=${{ env.AZURE_LOCATION }} \ --parameters aiDeploymentLocation=${{ env.AZURE_LOCATION }} \ --parameters azureAiServiceLocation=${{ env.AZURE_LOCATION }} \ - --createdBy="pipeline" \ + --parameters createdBy="pipeline" \ - name: Extract AI Services and Key Vault Names From d9333f69d3d5c8e69785ee10d9aec6024d928f7e Mon Sep 17 00:00:00 2001 From: Shreyas-Microsoft Date: Mon, 17 Nov 2025 19:29:27 +0530 Subject: [PATCH 3/3] add created by --- infra/main.bicep | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index 3c34d57d..ee085d62 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -100,14 +100,12 @@ param cosmosLocation string = 'eastus2' param existingLogAnalyticsWorkspaceId string = '' @description('Tag, Created by user name') -param createdBy string = contains(deployer(), 'userPrincipalName') - ? split(deployer().userPrincipalName, '@')[0] - : deployer().objectId +param createdBy string = deployer().objectId // Get the current deployer's information for local debugging permissions var deployerInfo = deployer() var deployingUserPrincipalId = deployerInfo.objectId -var deployingUserType = !empty(deployerInfo.userPrincipalName) ? 'User' : 'ServicePrincipal' +var deployingUserType = contains(deployerInfo, 'userPrincipalName') ? 'User' : 'ServicePrincipal' @description('Optional. Resource ID of an existing Foundry project') param existingFoundryProjectResourceId string = ''