Azure Developer CLI: From Dev to Prod with One Click
Jul 21, 2025PuiChee (PC) Chan

Summary
This post enhances the 'Azure DevOps Pipelines for Dev-to-Prod Promotion' feature by detailing the implementation of a 'build once, deploy everywhere' pattern using Azure Developer CLI (azd). It introduces conditional Bicep deployment driven by environment variables (`AZURE_ENV_TYPE`), environment-specific infrastructure provisioning (networking, storage, app service plan), and an updated CI/CD workflow that utilizes GitHub Action Artifacts for packaging and promoting the application from dev to prod using the same build artifacts. It also provides step-by-step instructions for initializing the project, setting up dev and prod environments, and configuring the CI/CD pipeline.
More from the Azure DevOps Pipelines for Dev-to-Prod Promotion trail
- Azure Developer CLI: From Dev to Prod with Azure DevOps Pipelines
- February Patches for Azure DevOps Server
- Revolutionizing Requirement Gathering: Azure DevOps Meets Azure OpenAI using Semantic kernel
- Deploy a Java application to Azure App Service using GitHub Actions
- Things to consider when running visual tests in CI/CD pipelines: Getting Started (Part 1)