Interview Prep/Azure/Azure DevOps, Bicep and Terraform

What deployment strategies do deployment jobs support?

IntermediateConceptAzure DevOps, Bicep and Terraform
Answer
  • runOnce: run the deploy lifecycle hooks once.
  • rolling: for VM environments, update a number or percentage of targets at a time (maxParallel).
  • canary: deploy in increments (increments: [10, 20]), with hooks preDeploy, deploy, routeTraffic, postRouteTraffic, on: failure/success.

With the KubernetesManifest@1 task, canary uses trafficSplitMethod: pod or smi, deploying a -canary variant and a -baseline, then promote or reject. Many teams instead run canary logic in Argo Rollouts or Flagger and keep pipelines simple.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on Azure DevOps, Bicep and Terraform