Created
January 14, 2025 07:28
-
-
Save Debjyoti30/ac765b9fdc1f8dca1f9da8833d14cb1f to your computer and use it in GitHub Desktop.
Infra deployment pipeline for ACR & Azure container App managed environment deployment
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
# 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