BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Deployment resiliency
Lesson204 words

Deployment resiliency

Design and implement a resiliency strategy for deployment

Resiliency here means the deployment survives its own failure — it detects trouble and reverses without a human reading logs at 3am.

Automatic reversal

yaml
strategy: runOnce: deploy: steps: [ { script: ./deploy.sh } ] postRouteTraffic: steps: [ { script: ./smoke-and-metrics.sh } ] on: failure: steps: [ { script: ./rollback.sh } ] success: steps: [ { script: ./cleanup.sh } ]

The important pairing: postRouteTraffic is what makes on: failure meaningful. Health is measured while real traffic flows, so a failure detected there triggers rollback based on production behaviour rather than on whether a script exited zero.

Layers

LayerMechanism
DetectpostRouteTraffic checks; Query Azure Monitor alerts
Reverseon: failure steps; slot swap back; feature flag off
ContainCanary and rolling — limit exposure before you detect
SerialiseExclusive lock — stop a second deployment landing mid-incident

Idempotency

Retries and partial failures mean a deployment step may run twice. Scripts must be safe to re-run — the resiliency plan is only as good as the least idempotent step in it.

Primary sources

  • 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 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.