Skip to content

Commit

Permalink
Create Deploy-AMBA.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunoga-MS authored Feb 16, 2024
1 parent 89f2014 commit ff2c119
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Deploy-AMBA.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ff2c119

Please sign in to comment.