Created
October 13, 2022 15:21
-
-
Save oliverlabs/6a7662a43a59b79fcc1a43f2889e3153 to your computer and use it in GitHub Desktop.
Azure DevOps Bicep Deploy Starter Pipeline
This file contains 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
trigger: | |
- main | |
name: Deploy Bicep files | |
variables: | |
vmImageName: 'ubuntu-latest' | |
azureServiceConnection: 'myServiceConnection' | |
resourceGroupName: 'Bicep' | |
location: 'eastus' | |
templateFile: 'main.bicep' | |
pool: | |
vmImage: $(vmImageName) | |
steps: | |
- task: AzureCLI@2 | |
inputs: | |
azureSubscription: $(azureServiceConnection) | |
scriptType: bash | |
scriptLocation: inlineScript | |
inlineScript: | | |
az --version | |
az group create --name $(resourceGroupName) --location $(location) | |
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment