Interview Prep/Azure/CI/CD and IaC

Your organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.

IntermediateScenarioCI/CD and IaC
Answer

Situation read → WIF service connections, environments with checks, templates.

What I'd do →

  1. Create an ARM service connection with workload identity federation, scoped to the app RG, not granted to all pipelines
  2. Docker registry service connection for ACR (also WIF-backed)
  3. Environment shop-prod with approvals and branch control (refs/heads/main)
  4. Pipeline: Docker@2 buildAndPush, then a deployment job to shop-prod using AzureCLI@2 or KubernetesManifest@1
  5. Extend from a platform template that adds scanning stages

Why → Approvals and checks live on the resources, so a modified pipeline can't skip them.

Interview tip → Mention checks on the service connection itself, not only the environment.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on CI/CD and IaC