BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Reliably ordered dependency deployments
Lesson224 words

Reliably ordered dependency deployments

Design a pipeline to ensure dependency deployments are reliably ordered

When service B calls service A's new endpoint, A must be deployed and healthy first. Ordering is expressed with stage dependencies, and proven with health gates.

Order

yaml
stages: - stage: DeployDatabase - stage: DeployApi dependsOn: DeployDatabase - stage: DeployWeb dependsOn: DeployApi

Remember stages are sequential by default, so this explicit chain mostly documents intent — the real work is making each stage prove success before the next begins.

Proving readiness, not just completion

A succeeded dependency satisfies the pipeline's dependency and condition model. It does not inspect whether the deployed endpoint is serving. Two mechanisms can add an explicit health signal:

  • postRouteTraffic in a deployment job — steps run after traffic is routed and typically monitor the updated version; make those steps fail when the health contract fails.
  • Resource-owner checks — configure Invoke REST API or Query Azure Monitor Alerts on a protected resource consumed by the downstream stage. The REST check continues on a successful response; the Monitor check succeeds when no configured alert rule is active.

Fan-in

yaml
- stage: DeployWeb dependsOn: [ DeployApi, DeployAuth ] condition: succeeded()

Multiple dependencies mean all must complete, and the default succeeded() means all must have succeeded.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/stages
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure533 words
  • Agent and runner infrastructure — quick notes222 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels294 words
  • Appropriate access levels — quick notes180 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.