Skip to content

Instantly share code, notes, and snippets.

@Debjyoti30
Created January 14, 2025 07:28
Show Gist options
  • Save Debjyoti30/ac765b9fdc1f8dca1f9da8833d14cb1f to your computer and use it in GitHub Desktop.
Save Debjyoti30/ac765b9fdc1f8dca1f9da8833d14cb1f to your computer and use it in GitHub Desktop.
Infra deployment pipeline for ACR & Azure container App managed environment deployment
# infra-pipeline.yml
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
resourceGroupName: '<Your_Resource_Group_Name>'
location: '<Your_Location>'
acrName: '<Your_ACR_Name>'
envName: '<Your_Container_App_Env_Name>'
steps:
- task: AzureCLI@2
displayName: 'Deploy Azure Resources using Bicep'
inputs:
azureSubscription: '<Your_Azure_Subscription_Service_Connection>'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
az group create --name $(resourceGroupName) --location $(location)
az deployment group create --resource-group $(resourceGroupName) --template-file main.bicep --parameters acrName=$(acrName) envName=$(envName) location=$(location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment