Created
January 7, 2022 09:54
-
-
Save lukemurraynz/41f615da65884024384dbf13288ff7c2 to your computer and use it in GitHub Desktop.
azure-pipelines.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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