Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Partial Failure · Rollback & Recovery

Direct answer

Partial failure in rollback and recovery means some targets were changed and some not. Decide whether to roll back the changed ones or complete the rest, and track exactly which state each target is in.

When to use this

Use this when a change was applied to only some targets.

First 30 seconds

1. Partial failures leave some targets changed.

2. Track per-target results.

3. Stop rollouts early.

4. Reconcile: roll back or roll forward consistently.

5. Idempotent reruns help.

Operational verification

batch → some fail → stop → reconcile

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation rollback and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformautomation rollback and recovery · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when a change was applied to only some targets.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Known-good, broken and when it is fixed Verify boundary

Known-good after recovery means every targeted object is in one intentionally documented final state, no duplicate/half-created artifacts remain, locks/queues are clear and the original service outcome is restored. A rollback task marked successful is insufficient without target read-back and workload verification across the previously partial scope.

Step 2 Common mistakes Narrow the fault
  • No record of which targets failed.
Step 3 Native failure isolation and next-check logic Narrow the fault

Freeze the run ID and enumerate completed, failed, pending and unknown side effects from both orchestration history and direct target read-back. Decide per object whether to resume forward, compensate/rollback or require manual repair. Check external systems that may have accepted irreversible actions. Do not rerun the whole workflow until duplicate effects and stale locks/leases are understood.

Evidence references

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.

observation · 1
Key points
  • Track state per target.
  • Decide roll back or complete.
  • Idempotency helps.
Key checks
  • Per-target result tracking — which succeeded
  • Batch stop on failure (max_fail_percentage) — containment
  • Reconcile partial state — cleanup
ReferenceHow it works1 section · depth on demand

How it works

Partial failure occurs when a multi-step or multi-target automation mutates some objects before later work fails. Recovery depends on knowing which side effects committed, which are pending and whether operations are reversible/idempotent. A failed job status does not mean nothing changed; a successful retry can compound partial state.

ReferenceImportant terms & boundaries1 section · depth on demand

Method

A partial failure leaves some targets or steps changed and others not. Recovery starts by establishing exactly what state each target is in, then choosing whether to complete the change, roll back the successes, or leave it and document.

Recovery method:

1. Collect per-target status from the run (succeeded, failed, not attempted).

2. Verify actual state on failed and in-progress targets — the failure may have happened after the change was applied.

3. Decide: roll forward (fix cause, re-run failed only) or roll back (revert successes).

4. Execute with the same automation, limited to the affected targets.

5. Verify consistency across all targets.

ansible-playbook change.yml --limit @change.retry
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docautomation rollback and recovery current

Authoritative/upstream documentation reviewed for bounded claims in Rollback & Recovery > Partial Failure. 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%
Confirmation

Confirm action

Continue?