Use this when documenting how to undo an automation's changes.
Rollback · Automation Documentation
Rollback documentation describes exactly how to undo an automation's changes, manually or with a rollback job, including when to roll back and how to verify the result.
1. Document rollback: steps, automation, limits, irreversible actions.
2. Tested.
3. Linked from runbooks.
4. Update with changes.
5. Needed for change approvals.
failure → documented rollback
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 stale documentation, hidden prerequisites, copy/paste ambiguity, unreviewed examples, broad parameters, irreversible steps and runbook completion without target verification, 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 only in someone's head.
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.
- Exact steps or a rollback job.
- When to roll back.
- How to verify the rollback.
- Rollback section per automation — recovery
- Tested rollback steps — proof
- Irreversible actions noted — risk
ReferenceWhy it matters1 section · depth on demand
What it is
Documented rollback explains how to undo what the automation did.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
The rollback section of automation documentation tells operators how to reverse what the automation did. It should be specific to this automation: which backup or previous version to restore, which command or job runs the rollback, and how to confirm the system is back to normal.
Template:
## Rollback
- Automatic: job reverts on failed verification (see `rollback.yml`).
- Manual: `ansible-playbook rollback.yml -e change_id=CHG1234 --limit <host>`
- Restores: config archived as `flash:pre-<change_id>.cfg`
- Not reversible: none
- Verify: `ansible-playbook verify.yml --limit <host>`
Documented example, not captured output. Keep it next to the code and update it in the same pull request as any change to what the automation modifies.
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 Documentation > Rollback. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/automation/automation-runbook-types · confidence 94%