From 3099b551d75afef2800393a2100eb58cd08acbe4 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 15:26:40 +0530 Subject: [PATCH 01/11] Added createdBy parameter --- .github/workflows/deploy.yml | 1 + infra/main.parameters.json | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a8cfb140..adfd2c65 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - my-pipeline-validation schedule: - cron: "0 9,21 * * *" # Runs at 9:00 AM and 9:00 PM GMT workflow_dispatch: diff --git a/infra/main.parameters.json b/infra/main.parameters.json index 90f79dc6..6fa031f7 100644 --- a/infra/main.parameters.json +++ b/infra/main.parameters.json @@ -31,6 +31,9 @@ }, "existingFoundryProjectResourceId": { "value": "${AZURE_ENV_FOUNDRY_PROJECT_ID}" + }, + "createdBy": { + "value": "" } } } \ No newline at end of file From 49f393eca08f0a6ffaa50164bcc4eda21ae43bed Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 15:43:15 +0530 Subject: [PATCH 02/11] updated the parameter createdBy --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index adfd2c65..4b82239c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -151,7 +151,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - createdBy="Pipeline" \ + createdBy="${{ env.CREATED_BY }}" \ --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 @@ -293,6 +293,7 @@ jobs: KEYVAULTS: ${{ needs.deploy.outputs.KEYVAULTS }} AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }} ENVIRONMENT_NAME: ${{ needs.deploy.outputs.ENVIRONMENT_NAME }} + CREATED_BY: ${{ github.actor }} steps: - name: Setup Azure CLI run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash From 039f467136b9deb338e42dae54c4a0edd61a01ee Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 15:46:56 +0530 Subject: [PATCH 03/11] updated --- .github/workflows/deploy.yml | 2 +- infra/main.parameters.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4b82239c..0d51a53c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -293,7 +293,7 @@ jobs: KEYVAULTS: ${{ needs.deploy.outputs.KEYVAULTS }} AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }} ENVIRONMENT_NAME: ${{ needs.deploy.outputs.ENVIRONMENT_NAME }} - CREATED_BY: ${{ github.actor }} + CREATED_BY: ${{ needs.deploy.outputs.CREATED_BY }} steps: - name: Setup Azure CLI run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash diff --git a/infra/main.parameters.json b/infra/main.parameters.json index 6fa031f7..90f79dc6 100644 --- a/infra/main.parameters.json +++ b/infra/main.parameters.json @@ -31,9 +31,6 @@ }, "existingFoundryProjectResourceId": { "value": "${AZURE_ENV_FOUNDRY_PROJECT_ID}" - }, - "createdBy": { - "value": "" } } } \ No newline at end of file From 7d7b42e6f8d6ed110a842c80a5b1002a99795e8d Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 15:58:20 +0530 Subject: [PATCH 04/11] updated the createdBy --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0d51a53c..e2999175 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -293,7 +293,7 @@ jobs: KEYVAULTS: ${{ needs.deploy.outputs.KEYVAULTS }} AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }} ENVIRONMENT_NAME: ${{ needs.deploy.outputs.ENVIRONMENT_NAME }} - CREATED_BY: ${{ needs.deploy.outputs.CREATED_BY }} + CREATED_BY: ${{ needs.deploy.outputs.createdBy }} steps: - name: Setup Azure CLI run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash From a4ae51fba4f37704f1be21e07ec281d5dbc0c5a2 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 16:09:14 +0530 Subject: [PATCH 05/11] updated code --- .github/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e2999175..c779231a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,7 @@ jobs: KEYVAULTS: ${{ steps.list_keyvaults.outputs.KEYVAULTS }} AZURE_LOCATION: ${{ steps.set_region.outputs.AZURE_LOCATION }} ENVIRONMENT_NAME: ${{ steps.generate_environment_name.outputs.ENVIRONMENT_NAME }} + CREATED_BY: ${{ steps.set_created_by.outputs.CREATED_BY }} # ✅ NEW steps: - name: Checkout Code @@ -31,6 +32,11 @@ jobs: run: | curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash az --version # Verify installation + - name: Set Created By + id: set_created_by + run: | + echo "CREATED_BY=${{ github.actor }}" >> $GITHUB_ENV + echo "CREATED_BY=${{ github.actor }}" >> $GITHUB_OUTPUT - name: Login to Azure run: | @@ -151,7 +157,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - createdBy="${{ env.CREATED_BY }}" \ + createdBy="${{ env.CREATED_BY }}" \ # ✅ updated from Pipeline → actor --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 @@ -293,7 +299,6 @@ jobs: KEYVAULTS: ${{ needs.deploy.outputs.KEYVAULTS }} AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }} ENVIRONMENT_NAME: ${{ needs.deploy.outputs.ENVIRONMENT_NAME }} - CREATED_BY: ${{ needs.deploy.outputs.createdBy }} steps: - name: Setup Azure CLI run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash From b7ac7d3d6c4634978fe96c46f0ab42e99226efc3 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 16:13:00 +0530 Subject: [PATCH 06/11] updated --- .github/workflows/deploy.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c779231a..407ba924 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,6 @@ jobs: KEYVAULTS: ${{ steps.list_keyvaults.outputs.KEYVAULTS }} AZURE_LOCATION: ${{ steps.set_region.outputs.AZURE_LOCATION }} ENVIRONMENT_NAME: ${{ steps.generate_environment_name.outputs.ENVIRONMENT_NAME }} - CREATED_BY: ${{ steps.set_created_by.outputs.CREATED_BY }} # ✅ NEW steps: - name: Checkout Code @@ -32,11 +31,6 @@ jobs: run: | curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash az --version # Verify installation - - name: Set Created By - id: set_created_by - run: | - echo "CREATED_BY=${{ github.actor }}" >> $GITHUB_ENV - echo "CREATED_BY=${{ github.actor }}" >> $GITHUB_OUTPUT - name: Login to Azure run: | @@ -157,7 +151,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - createdBy="${{ env.CREATED_BY }}" \ # ✅ updated from Pipeline → actor + tags="createdBy=${{ env.CREATED_BY }}" \ --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 From 22b3bdf89f3ebd43ebd2a9d3c94606af12180592 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 16:30:22 +0530 Subject: [PATCH 07/11] updated2 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 407ba924..fa09d4ea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -151,7 +151,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - tags="createdBy=${{ env.CREATED_BY }}" \ + tags="CreatedBy=Pipeline" \ --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 From 6e2ceb3c71068a5f3a6787f0595076f0d5d5ae8b Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 16:39:23 +0530 Subject: [PATCH 08/11] updated3 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fa09d4ea..5ed00a74 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -151,7 +151,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - tags="CreatedBy=Pipeline" \ + createdBy="Pipeline" --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 From 532d7ad2a71b81eba56af307d834939e3fedc917 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 16:51:24 +0530 Subject: [PATCH 09/11] updated4 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ed00a74..c86710e0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -151,7 +151,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - createdBy="Pipeline" + tags='{"CreatedBy":"Pipeline"}' --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 From cf267bccd5fb9818855c75f0cbcab63d6289f2a8 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 17:00:47 +0530 Subject: [PATCH 10/11] updated5 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c86710e0..4f3b9e35 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -151,7 +151,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ - tags='{"CreatedBy":"Pipeline"}' + tags='{"CreatedBy":"Pipeline"}' \ --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 From 26746a76cab014152f8ea847170a83e6cff8c393 Mon Sep 17 00:00:00 2001 From: "Prekshith D J (Persistent Systems Inc)" Date: Wed, 17 Sep 2025 17:19:28 +0530 Subject: [PATCH 11/11] Updated the createdBy parameter --- .github/workflows/deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4f3b9e35..36824ccd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - my-pipeline-validation schedule: - cron: "0 9,21 * * *" # Runs at 9:00 AM and 9:00 PM GMT workflow_dispatch: