Use this when designing how to undo a job's changes.
Rollback · Automation Design
Rollback in automation design is the planned way to undo a job's changes if it fails or causes problems, written and tested together with the forward change.
1. Plan rollback before changing: backups, snapshots, previous config, git revert.
2. Automate rollback where possible.
3. Define triggers.
4. Test it.
5. Some changes can't be rolled back — plan forward fixes.
change → failure → rollback to known good
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 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as implicit defaults, hidden dependencies, duplicate dispatch, worker drift, timeout without cancellation, retries against non-idempotent operations and confusing control-plane completion with target convergence, choosing the cases most relevant to restore/revert identity, scope, prerequisites, dependency order and proving target/service state returns to the last known-good contract.
Step 2 Common mistakes Narrow the fault
- Rollback steps never tested.
- Rolling back config but not data.
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.
- Write rollback with the change.
- Test it.
- Define when to trigger it.
- Rollback procedure per change — plan
- Backup/snapshot before change — restore point
- Rollback test — proof
ReferenceWhy it matters1 section · depth on demand
What it is
Rollback returns a system to its previous state after a failed or unwanted change: re-apply the previous version, restore a snapshot, or run a reverse procedure. Plan and test it before the change; not every change is reversible (data deletion, schema migrations).
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Rollback returns a system to its previous known-good state when a change fails. It must be designed before the change runs: once a change has half-applied, it is too late to discover that the old configuration was not saved or that the step cannot be reversed.
| Strategy | How | Fits |
|---|---|---|
| Restore backup | Save config/state before, restore on failure | Network devices, files |
| Reverse operation | Undo each step in reverse order | API objects |
| Redeploy previous version | Deploy last known-good artifact | Applications, IaC |
| Platform rollback | configure replace, commit confirmed, snapshots | Devices/VMs with native support |
Not everything can be rolled back — sent emails, deleted data, rotated keys. Identify such steps in advance and put an approval or a point-of-no-return check before them.
archive
path flash:archive
configure replace flash:archive-1 list ! Cisco IOS XE rollback
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 > Rollback. 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%Deep reference
Healthy vs suspicious evidence
Output interpretation
For restore/revert identity, scope, prerequisites, dependency order and proving target/service state returns to the last known-good contract, prefer typed fields and stable IDs over human presentation text.