Use it when configuring, checking or troubleshooting Desired State in Automation Fundamentals.
Desired State · Automation Fundamentals
Desired State is the authoritative description of what managed resources or services should look like after automation has converged.
1. Desired state is the intended configuration, stored as code.
2. Single source of truth.
3. Changes go through review.
4. Tools compare it with reality.
5. Manual changes become drift.
git (desired) → tool → target
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 Operational evidence path Verify boundary
intent owner → desired-state source/version → validation → current-state comparison → delta/apply → observed state → acceptance against intent
Healthy evidence: one authoritative version is traceable to the execution, managed fields are explicit and observed state plus service checks match the intended invariants.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: multiple competing desired sources, stale branch/config, unclear unmanaged fields, environment overrides outside version control or apply success without read-back.
Step 3 Common mistakes Narrow the fault
- Desired state stored 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.
- Desired state ≠ current state; configuration intent can exist while runtime reality differs.
- Desired state ≠ every property; some fields may be generated, learned or intentionally unmanaged.
- Repository value ≠ authoritative automatically; ownership and promotion rules determine which source wins.
- Desired configuration ≠ service acceptance; the configured state must still produce the required operational outcome.
- Desired state in git — source of truth
terraform show— state as known by toolkubectl get <obj> -o yaml— declared spec
ReferenceWhat it is1 section · depth on demand
Core model
Define desired state as explicit, versioned intent with ownership, scope and constraints. Compare it with observed current state to derive work and verify the resulting state against the same intent.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Desired state shows what should be true according to an authoritative intent source, but it does not show the target currently matches it.
In depth
In automation fundamentals, desired state is the description of how a system should be — packages installed, services running, VLANs present — rather than the steps to get there. Tools compare it with the current state and only make the differences.
# desired state for an NTP role
ntp_servers: [10.0.0.10, 10.0.0.11]
ntp_service: running
Documented example, not captured output.
| Benefit | Detail |
|---|---|
| Repeatable | Same definition gives the same result on every host |
| Reviewable | Changes are diffs to data, easy to approve |
| Drift detection | Compare desired vs actual on a schedule |
Keep desired state in one authoritative place (Git or a source of truth such as NetBox) so there is no doubt which definition is correct.
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 Fundamentals > Desired State. 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%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
Desired State automation boundary map
Fast intent, state, execution, verification and recovery boundaries for Desired State.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / inputs | Owner, scope and authoritative inputs are explicit and versioned where applicable | Hidden defaults, stale inventory or competing sources of truth |
| Decision / execution | Plan or decision is explainable and actions are bounded per target | Blind fan-out, implicit assumptions or success based only on executor status |
| State / verification | Target is re-observed and acceptance criteria prove the intended outcome | No read-back, perpetual drift, partial side effects or unresolved exceptions |
| Recovery / evidence | Retry, rollback or escalation behavior is defined and auditable | Unknown partial completion, unsafe retry or evidence lost during remediation |