From ff2c1199fd5f019b34a0b71adc73e77f475a23cd Mon Sep 17 00:00:00 2001 From: Bruno Gabrielli Date: Fri, 16 Feb 2024 16:41:17 +0100 Subject: [PATCH 1/2] Create Deploy-AMBA.yml --- .github/workflows/Deploy-AMBA.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/Deploy-AMBA.yml diff --git a/.github/workflows/Deploy-AMBA.yml b/.github/workflows/Deploy-AMBA.yml new file mode 100644 index 000000000..b70b44fae --- /dev/null +++ b/.github/workflows/Deploy-AMBA.yml @@ -0,0 +1,37 @@ +name: Deploy AMBA + +on: + workflow_dispatch: {} + +permissions: + id-token: write + contents: read + +env: + Location: "norwayeast" + ManagementGroupPrefix: "alz" + +jobs: + deploy_job: + runs-on: ubuntu-latest + environment: deploy + + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: "Az CLI login" + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + enable-AzPSSession: true + + - name: Az CLI Deploy AMBA ARM template + id: deploy_amba + shell: bash + run: | + az deployment mg create --template-uri https://raw.githubusercontent.com/Azure/azure-monitor-baseline-alerts/main/patterns/alz/alzArm.json --location ${{ env.Location }} --management-group-id ${{ env.ManagementGroupPrefix }} --parameters ./patterns/alz/alzArm.param.json From a1ea72b3b2a48b1e4c5fe1c12ad8d54c246938cc Mon Sep 17 00:00:00 2001 From: Bruno Gabrielli Date: Fri, 16 Feb 2024 16:43:47 +0100 Subject: [PATCH 2/2] Delete .github/workflows/Deploy-AMBA.yml --- .github/workflows/Deploy-AMBA.yml | 37 ------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/Deploy-AMBA.yml diff --git a/.github/workflows/Deploy-AMBA.yml b/.github/workflows/Deploy-AMBA.yml deleted file mode 100644 index b70b44fae..000000000 --- a/.github/workflows/Deploy-AMBA.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Deploy AMBA - -on: - workflow_dispatch: {} - -permissions: - id-token: write - contents: read - -env: - Location: "norwayeast" - ManagementGroupPrefix: "alz" - -jobs: - deploy_job: - runs-on: ubuntu-latest - environment: deploy - - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: "Az CLI login" - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - enable-AzPSSession: true - - - name: Az CLI Deploy AMBA ARM template - id: deploy_amba - shell: bash - run: | - az deployment mg create --template-uri https://raw.githubusercontent.com/Azure/azure-monitor-baseline-alerts/main/patterns/alz/alzArm.json --location ${{ env.Location }} --management-group-id ${{ env.ManagementGroupPrefix }} --parameters ./patterns/alz/alzArm.param.json