Interview Prep/Azure/CI/CD and IaC

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 →

  1. Deploy to the staging slot (azure/webapps-deploy@v3 with slot-name: staging)
  2. Smoke test the staging URL
  3. Swap: az webapp deployment slot swap -g rg -n app-shop --slot staging
  4. Rollback: swap again
  5. 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.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on CI/CD and IaC