Azure DevOps CI/CD Pipeline
Overview
Build comprehensive CI/CD pipelines using Azure DevOps for deploying applications to Azure App Service, AKS, or Azure Functions.
Usage
Create an Azure DevOps pipeline for [application]:
- Source: [GitHub/Azure Repos]
- Build: [.NET/Node.js/Python/etc.]
- Test: Unit tests, integration tests
- Deploy to: [Azure App Service/AKS/Functions]
- Environments: Dev, Staging, Production
Examples
.NET Web App
"Build Azure DevOps pipeline for ASP.NET Core app: restore, build, test, publish, deploy to Azure App Service with blue-green deployment."
React Frontend
"Create pipeline for React app: npm install, build, run tests, deploy to Azure Static Web Apps with preview environments for PRs."
Docker to AKS
"Set up pipeline to build Docker image, push to ACR, deploy to AKS with Helm, run smoke tests."
Pipeline Stages
Build:
- Checkout code
- Restore dependencies
- Build application
- Run unit tests
- Code coverage
Artifact:
- Publish build artifacts
- Push Docker images (if applicable)
Deploy:
- Deploy to Dev (automatic)
- Deploy to Staging (approval)
- Deploy to Production (approval)
- Health checks
Post-Deployment:
- Smoke tests
- Notifications (Slack, Teams)
Output Format
- azure-pipelines.yml file
- Variable groups setup
- Service connections needed
- Approval gates configuration
- Documentation