Microsoft

Azure Developer CLI: From Dev to Prod with One Click

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

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