BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Reliably ordered dependency deployments
Lesson187 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 stage completing means its steps exited zero. It does not mean the dependency is serving traffic. Two mechanisms close that gap:

  • postRouteTraffic in a deployment job — run health checks while real traffic flows, before declaring success.
  • Checks on the downstream resource — Invoke REST API or Query Azure Monitor alerts can block the next stage until the dependency reports healthy.

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/approvals
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 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 levels217 words
  • Appropriate access levels — quick notes85 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.