CI/CD Deploy Recipe
Deploy to Azure using automated pipelines.
Prerequisites
.azure/deployment-plan.mdexists with statusValidated- Azure Service Principal or federated credentials configured
- Pipeline file exists (
.github/workflows/orazure-pipelines.yml)
GitHub Actions
| Example | Description |
|---|---|
| github-azd.yml | AZD deployment workflow |
| github-bicep.yml | Bicep infrastructure deployment |
Azure DevOps
| Example | Description |
|---|---|
| azdo-azd.yml | Basic AZD pipeline |
| azdo-multistage.yml | Multi-stage with approvals |
Setup Requirements
GitHub Actions
- Create Azure Service Principal with federated credentials
- Add secrets:
AZURE_CLIENT_ID,AZURE_TENANT_ID,AZURE_SUBSCRIPTION_ID - Add variables:
AZURE_ENV_NAME,AZURE_LOCATION - Create environments with protection rules
Azure DevOps
- Create Service Connection to Azure
- Create Variable Groups per environment
- Create Environments with approval gates