From c43db4dde035b464dfd829b75c4d12d9f80bb5eb Mon Sep 17 00:00:00 2001 From: Michael Widegren Date: Thu, 5 Sep 2024 13:59:20 +0200 Subject: [PATCH] initial --- .github/workflows/Deploy-AMBA.yml | 37 +++++++++++++++++++++++++++++++ patterns/alz/alzArm.param.json | 4 ++-- 2 files changed, 39 insertions(+), 2 deletions(-) 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..8c56bfe46 --- /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: "swedencentral" + ManagementGroupPrefix: "contoso" + +jobs: + deploy_job: + runs-on: ubuntu-arc-payex + 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/Payex/azure-monitor-baseline-alerts/main/patterns/alz/alzArm.json --location ${{ env.Location }} --management-group-id ${{ env.ManagementGroupPrefix }} --parameters ./patterns/alz/alzArm.param.json diff --git a/patterns/alz/alzArm.param.json b/patterns/alz/alzArm.param.json index e6d23b0b9..04c0c89ac 100644 --- a/patterns/alz/alzArm.param.json +++ b/patterns/alz/alzArm.param.json @@ -72,13 +72,13 @@ "value": "id-amba-prod-001" }, "managementSubscriptionId": { - "value": "" + "value": "82899754-6c6e-477c-bc26-92eb442b90f9" }, "ALZMonitorResourceGroupName": { "value": "rg-amba-monitoring-001" }, "ALZMonitorResourceGroupLocation": { - "value": "eastus" + "value": "swedencentral" }, "ALZMonitorResourceGroupTags": { "value": {