Use this when changes should revert automatically if checks fail.
Automatic Rollback
Automatic rollback reverts a change by itself when post-change checks fail, such as a confirmed commit timing out, a deployment health check failing or a pipeline running its rollback job.
1. Automatic rollback on failed post-checks.
2. Clear criteria.
3. Fast detection.
4. Notify humans.
5. Test regularly.
deploy → health check fails → automatic rollback → notify
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 Verify rollback against revision identity and the original workload test Verify boundary
Verify Automatic Rollback by confirming the rollback transaction references the failed revision and the intended previous known-good revision. Read back effective configuration or deployment state on the target and expect the previous revision identifier or equivalent state. Repeat the same health check and original workload transaction that triggered rollback and confirm both recover. A restored configuration shows control state only, but it does not show schema, data or downstream dependencies remain compatible.
Step 2 Branch rollback failures at trigger, baseline selection, execution and recovery verification Narrow the fault
If Automatic Rollback does not start, verify the health threshold and trigger event before changing the rollback policy. If it starts against the wrong revision, inspect release lineage and baseline selection. If rollback execution fails, identify the first target or dependency that cannot accept the previous state. If rollback completes but the workload remains broken, compare dependency and data compatibility before retrying. Keep the original failure evidence so rollback does not erase the root-cause boundary.
Step 3 Common mistakes Narrow the fault
- Automatic rollback without notification.
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.
- Confirmed commits and health checks trigger it.
- Test the rollback path.
- Log when it happens.
- Automatic rollback triggers (failed health check) — criteria
kubectl rollout undo deploy/<n>— example- commit confirmed timeout — network auto-rollback
ReferenceWhy it matters1 section · depth on demand
Automatic rollback needs a trusted trigger, recoverable baseline and bounded ownership
Automatic Rollback is safe only when the system can distinguish a deployment failure from unrelated noise and can identify the exact previous state to restore. The detector owns the rollback trigger, the orchestrator owns the rollback transaction, and the target platform owns the effective restored state. A rollback command returning success does not show data, dependencies or workload behavior returned to baseline. Preserve failed revision, rollback revision, trigger evidence and transaction ID.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Automatic rollback reverts a change without human intervention when verification fails. It shortens outages from failed changes to minutes, and protects remote changes that could cut off management access.
Mechanisms by platform:
| Platform | Mechanism |
|---|---|
| NETCONF / Junos / IOS XR | Confirmed commit with timeout |
| IOS XE | configure replace with archive, rollback timers |
| Kubernetes | Failed rollout + rollout undo, Argo Rollouts analysis |
| Helm | --atomic |
| CI/CD | Smoke-test failure triggers redeploy of previous artifact |
| Ansible | block/rescue restoring backup |
Define precise rollback triggers (specific checks, not "something looks wrong"), test the rollback path regularly, and alert humans every time automatic rollback happens — it means a change failed.
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 Rollback & Recovery > Automatic Rollback. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments · confidence 94%