Skip to content

Instantly share code, notes, and snippets.

@lukemurraynz
Created January 7, 2022 09:54
Show Gist options
  • Save lukemurraynz/41f615da65884024384dbf13288ff7c2 to your computer and use it in GitHub Desktop.
Save lukemurraynz/41f615da65884024384dbf13288ff7c2 to your computer and use it in GitHub Desktop.
azure-pipelines.yml
# Variable 'location' was defined in the Variables tab
# Variable 'PrimaryDNSZone' was defined in the Variables tab
# Variable 'ResourceGroupName' was defined in the Variables tab
# Variable 'SPN' is defined in the Variables tab
trigger:
branches:
include:
- refs/heads/main
jobs:
- job: Job_1
displayName: Agent job 1
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- task: AzureCLI@2
displayName: 'Azure CLI '
inputs:
connectedServiceNameARM: $(SPN)
scriptType: pscore
scriptLocation: inlineScript
inlineScript: >2-
az group create --name $(ResourceGroupName) --location $(location)
az deployment group create `
--template-file $(Build.SourcesDirectory)\Deploy-PublicDNS.bicep `
--resource-group $(ResourceGroupName) `
--parameters PrimaryDNSZone=$(PrimaryDNSZone)
powerShellErrorActionPreference: continue
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment