A deployment to App Service must have zero downtime and instant rollback.
BeginnerScenarioCI/CD and IaC
Answer
Situation read → Deployment slots.
What I'd do →
- Deploy to the
stagingslot (azure/webapps-deploy@v3withslot-name: staging) - Smoke test the staging URL
- Swap:
az webapp deployment slot swap -g rg -n app-shop --slot staging - Rollback: swap again
- Mark environment-specific settings as slot settings
Why → Swap warms instances before switching traffic and keeps the previous version ready in the other slot.
Interview tip → Mention swap with preview for multi-phase validation.
More on CI/CD and IaC
Design a GitHub Actions pipeline that builds an image, pushes to ACR and deploys to AKS with no secrets.IntermediateYour organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.IntermediateYou need to promote the same image from dev to staging to prod. How do you design it?IntermediateTerraform state for prod is in a storage account accessible with account keys. Harden it.IntermediateYour team wants to move from ARM JSON templates to Bicep. How do you migrate?BeginnerA pipeline needs to deploy to dev, test and prod in different subscriptions. How do you handle identities?Advanced