Skip to content

Commit

Permalink
Linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arjenhuitema committed Sep 11, 2023
1 parent f1ef0ee commit 4954ba5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 32 deletions.
24 changes: 11 additions & 13 deletions patterns/alz/examples/sample-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
variables:
location: 'norwayeast'
ManagementGroupPrefix: 'alz'
serviceConnectionName: 'AMBA-Service-Connection'
location: "norwayeast"
ManagementGroupPrefix: "alz"
serviceConnectionName: "AMBA-Service-Connection"

pool:
vmImage: ubuntu-latest

steps:
- task: AzureCLI@2
displayName: 'Deploy AMBA ARM template'
inputs:
azureSubscription: ${{ variables['serviceConnectionName'] }}
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
az deployment mg create --template-uri https://raw.githubusercontent.com/Azure/azure-monitor-baseline-alerts/main/patterns/alz/alzArm.json --location $(location) --management-group-id $(ManagementGroupPrefix) --parameters .\patterns\alz\alzArm.param.json
- task: AzureCLI@2
displayName: "Deploy AMBA ARM template"
inputs:
azureSubscription: ${{ variables['serviceConnectionName'] }}
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
az deployment mg create --template-uri https://raw.githubusercontent.com/Azure/azure-monitor-baseline-alerts/main/patterns/alz/alzArm.json --location $(location) --management-group-id $(ManagementGroupPrefix) --parameters .\patterns\alz\alzArm.param.json
30 changes: 14 additions & 16 deletions patterns/alz/examples/sample-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@

name: Deploy AMBA

on:
workflow_dispatch: {}

permissions:
id-token: write
contents: read
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: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: 'Az CLI login'
uses: azure/login@v1
with:
- 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: |
- 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
2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -9470,4 +9470,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4527,4 +4527,4 @@
"policyType": "Custom",
"policyDefinitionGroups": null
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3176,7 +3176,7 @@
"displayName": "LB Used SNAT Ports Alert State",
"description": "Alert state for the alert"
}
}
}
},
"policyDefinitions": [
{
Expand Down

0 comments on commit 4954ba5

Please sign in to comment.