Interview Prep/Azure/CI/CD and IaC

You need a reusable pipeline for 50 microservices in Azure DevOps. How do you design it?

IntermediateScenarioCI/CD and IaC
Answer

Situation read → Central template repo with extends templates, versioned.

What I'd do →

  1. platform/pipeline-templates repo with build.yml, deploy-aks.yml, service.yml (extends template), tagged releases
  2. Each service's azure-pipelines.yml is ~15 lines: resource reference to the template at a tag, parameters (service name, chart path)
  3. Environments require the template via "Required template" check
  4. Roll out template changes by bumping the tag per service or with a bot PR

Why → One place to add security scanning or change deploy logic, enforced for prod.

Interview tip → Pinning to a tag avoids breaking 50 pipelines at once.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on CI/CD and IaC