BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Topic 3.4 — Deployments — cram sheet
Cram Sheet382 words

Topic 3.4 — Deployments — cram sheet

Topic 3.4 — Deployments · cram sheet

Strategies

PatternPurpose
Blue-greenTwo environments, atomic switch, instant rollback
CanarySmall traffic slice first
Ring / progressive exposureWidening audiences
A/B testingMeasurement, not safety
Feature flagsDecouple release from deployment

Only runOnce, rolling, canary are strategy: keywords. Blue-green and ring are patterns you build. Fastest rollback for flagged code = turn the flag off.

Ordered dependencies

  • Stages are sequential by default; dependsOn: [A, B] waits for all.
  • A completed stage is not a healthy dependency. Gate with postRouteTraffic health checks or a Query Azure Monitor alerts / Invoke REST API check.

Minimising downtime

  • Slot swap: staging is already warm → no cold start. Swap back to roll back.
  • Slot settings are sticky — a connection string that isn't one follows the app and production writes to the staging database.
  • rolling with maxParallel: 2 of 6 VMs → four stay in service.

Hotfix path

  • Branch from the released tag, never main.
  • Merge back — the most-tested failure is the bug reappearing at the next release.
  • Reduce scope, not rigour. Break-glass is agreed in advance with the resource owner.

Resiliency

  • postRouteTraffic detects under real traffic; on: failure reverses.
  • Exclusive lock stops a second deploy during an incident.
  • Deployment scripts must be idempotent — retries mean a step may run twice.

Feature flags (App Configuration)

  • Flag = binary on/off + code block. Feature manager = lifecycle + caching. Filter = per-request rule.
  • Uses: dark deployment · test in production · flighting · instant kill switch · selective activation.
  • Flag state is cached — the kill switch is not literally instant.

Containers, binaries, scripts

  • Build once, deploy many. Environment differences are configuration.
  • Promote by digest — :latest is a mutable pointer, so tested ≠ deployed.
  • Scripts are the least immutable → idempotent, pinned tool versions.

Database deployments

  • Schema must support old and new app versions during rollout.
  • Expand → Migrate → Contract. The drop is the only irreversible step, so it goes last.
  • on: failure restores code, not data.
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.