Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
cybertron-payex committed Sep 5, 2024
1 parent 5520174 commit c43db4d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 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: "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
4 changes: 2 additions & 2 deletions patterns/alz/alzArm.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit c43db4d

Please sign in to comment.