Use it when the symptom is “Partial Deployment”: work through the layers in order and stop at the first one that fails.
Partial Deployment
Partial Deployment isolates automation that changed only a subset of intended targets or layers, requiring an exact completion map before deciding whether to continue, roll back or reconcile.
1. Partial deployment: some targets updated, others failed.
2. Stop further rollout.
3. Decide rollback vs fix-forward.
4. Idempotent rerun after fix.
5. Verify all targets.
rollout → mixed results → stop → reconcile → verify
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git rev-parse HEADPrimary Commands
Configuration and operational commands for this Topic.
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 Operational evidence path Verify boundary
intended target set → per-target stage/task state → target read-back → mixed-state compatibility → first shared/individual failure → continue/reconcile/rollback decision → convergence → fleet/service acceptance
Healthy evidence: every target has a known stage/effective-state entry, mixed-state risk is assessed, recovery is bounded, and final fleet plus service acceptance is uniform.
Step 2 Telling causes apart Verify boundary
Known-good is every in-scope target reporting and directly exposing the same intended revision/configuration, no target remaining in unknown/in-progress state, and the original service test succeeding across the rollout scope. Broken evidence is a mix of revisions, failed/unknown targets or orchestration success with stale target read-back. git rev-parse HEAD shows the control/source revision only; it cannot show what revision each managed target is actually running.
Step 3 Common mistakes Verify boundary
- No list of which targets succeeded.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: aggregate success percentage is used, unknown targets are assumed unchanged, full reruns duplicate changes, or service compatibility during mixed state is ignored.
Step 5 Observation-driven branch and next-check logic Narrow the fault
Record the desired revision with git rev-parse HEAD, then enumerate every target and classify not-started/in-progress/succeeded/failed/unknown using deployment logs plus direct read-back. If failures cluster by environment or phase, investigate that shared boundary; if a target reports success but read-back differs, treat it as false-positive completion. Before retrying, determine whether completed steps are idempotent and whether rollback/resume markers exist. Avoid global redeploy until the mixed-state map is explicit.
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.
- Job failed halfway ≠ all earlier changes were reverted.
- Majority succeeded ≠ service is safe in a mixed state.
- Same error on several targets ≠ same root cause.
- Rerun all targets ≠ safest path to convergence.
- Per-target results — which changed
- Stop rollout (max_fail_percentage) — containment
- Reconcile: rollback or roll forward — consistency
ReferenceWhat it is1 section · depth on demand
Core model
Freeze intended target set and source revision; build per-target/per-stage ledger of not-started/in-progress/succeeded/failed/unknown; read back effective state; identify shared failure point; assess dependency/order and blast radius; choose bounded continue/reconcile/rollback; verify uniform intended outcome.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
Partial Deployment means a rollout changed only a subset of targets or layers, leaving mixed revisions/state. The source commit (git rev-parse HEAD) defines intended code/content identity at the control side, while each target independently owns applied revision and runtime state. Retrying without inventory of completed/failed targets can duplicate side effects or overwrite useful failure evidence.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Partial-deployment evidence must be per target and per stage; aggregate percentages cannot show which resources are safe or consistent.
In depth
A partial deployment leaves some targets changed and others not, or a single target half-changed. It is often worse than a full failure because the environment becomes inconsistent.
| Prevention | Example |
|---|---|
| Atomic changes per target | Config replace, transactions |
| Batching with stop on failure | serial + max_fail_percentage |
| Clear per-target results | Know exactly which targets changed |
| Idempotent rerun | Completes the rest safely |
When it happens, first list changed vs unchanged targets, then decide whether to roll forward (rerun) or roll back the changed ones — mixed states should not be left in place.
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 Troubleshooting > Partial Deployment. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Partial Deployment troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for Partial Deployment.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |