Use this when limiting how far a bad change spreads.
Failure Boundaries
Failure boundaries limit how far a failure can spread, for example by changing one site or a small batch of devices at a time, so a bad change does not hit everything at once.
1. Failure boundaries limit impact: batches, canaries, max_fail_percentage, separate environments.
2. Stop on first failures.
3. Roll out gradually.
4. Isolate credentials per environment.
5. Monitor during rollout.
change → canary → batches → stop on failure
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Running against all hosts at once.
- Shared credentials or state across environments.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Change a small batch first.
- Stop on failure thresholds.
- One site at a time.
- Blast radius limits (batches, serial, max failures) — scope
- Per-environment separation — isolation
- Stop conditions — fail fast
ReferenceWhy it matters1 section · depth on demand
What it is
Failure boundaries define how far one failure can spread: one host, one batch, one environment. Use batches (serial), stop conditions (max_fail_percentage) and separate runs per environment to keep a bad change contained.
ReferenceHow it works1 section · depth on demand
In depth
A failure point is the line beyond which a fault in an automation run is not allowed to spread. Without one, a bad template or wrong variable reaches every target in seconds — automation makes mistakes as fast as it makes fixes. With boundaries, the first failures stop the run while most of the estate is still untouched.
Common boundaries, from smallest to largest:
| Boundary | Mechanism |
|---|---|
| Single host | Per-host error handling, any_errors_fatal: false |
| Batch | Rolling execution (serial), canary first |
| Failure threshold | max_fail_percentage, stop after N errors |
| Environment | Separate runs and credentials for test, staging, production |
| Region/site | One site at a time for network changes |
Worked example: 400 switches, serial: [1, 10, "25%"] and max_fail_percentage: 5. The first run touches one canary switch; if it fails, nothing else changes. Next come 10 switches, then 25% at a time; if more than 5% of a batch fails, the play stops with at most one batch affected.
ReferenceImportant terms & boundaries1 section · depth on demand
Example
- hosts: web
serial: "10%"
max_fail_percentage: 5
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Design > Failure Boundaries. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/enable-automation · confidence 94%