Use this when continuing a failed job after the cause is fixed.
Resume · Automation Design
Resume lets a failed or interrupted automation job continue from where it stopped, using checkpoints and idempotent steps, instead of restarting the whole job from the beginning.
1. Resume continues failed runs without redoing completed work.
2. Requires checkpoints or idempotency.
3. Verify state before resuming.
4. Report remaining work.
5. Test resume paths.
failed run → resume → remaining steps
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 recovery checkpoint/state, which steps already committed side effects, idempotent continuation and preventing resume from replaying completed mutations.
Step 2 Common mistakes Narrow the fault
- Resuming without checking what changed since the failure.
- Steps that are not idempotent.
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.
- Resume continues from the last completed checkpoint.
- Fix the cause before resuming.
- Steps after the checkpoint must be idempotent.
- Resume from checkpoint option — --resume flag
- Idempotent steps — safe re-run
- Partial-run report — what remains
ReferenceWhy it matters1 section · depth on demand
What it is
Resume lets a long workflow continue from the failed step instead of starting over. It requires recorded progress (state per step) and idempotent steps so re-running completed work is safe.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Resume means continuing a failed or interrupted run from where it stopped instead of starting over. For long workflows — migrating hundreds of mailboxes, upgrading a fleet of switches — restarting from the beginning wastes hours and may repeat steps that should run only once.
Requirements for safe resume:
- Record progress per item and per step in durable state (file, database, workflow engine).
- Make each step idempotent, so repeating the step that was in progress is harmless.
- On resume, re-verify the state of the item that was in progress before continuing.
# Ansible: retry only the hosts that failed
ansible-playbook upgrade.yml --limit @upgrade.retry
# Ansible: start at a specific task
ansible-playbook upgrade.yml --start-at-task "Install image"
done = set(json.load(open("progress.json")))
for item in items:
if item in done: continue
process(item); done.add(item); json.dump(sorted(done), open("progress.json", "w"))
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 > Resume. 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%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Deep reference
Healthy vs suspicious evidence
Output interpretation
For recovery checkpoint/state, which steps already committed side effects, idempotent continuation and preventing resume from replaying completed mutations, prefer typed fields and stable IDs over human presentation text.