Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Desired State · Automation Fundamentals

Direct answer

Desired State is the authoritative description of what managed resources or services should look like after automation has converged.

First 30 seconds

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.

Operational verification

git (desired) → tool → target

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation lifecycle and operational design
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 lifecycle and operational design · Automation owns desired-state consumption and comparison; service/platform owners define the semantic correctness of the intended state.
Scope / prerequisiteUse it when configuring, checking or troubleshooting Desired State in Automation Fundamentals.
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 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 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
  • 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.
Key checks
  • Desired state in git — source of truth
  • terraform show — state as known by tool
  • kubectl 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.

BenefitDetail
RepeatableSame definition gives the same result on every host
ReviewableChanges are diffs to data, easy to approve
Drift detectionCompare 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.

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 lifecycle and operational design current

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%
Terminology layer

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.

Aliases that resolve here
desired statetarget stateautomation desired configurationintended state
Embedded reference data

Quick lookup tables

Desired State automation boundary map

Fast intent, state, execution, verification and recovery boundaries for Desired State.

BoundaryHealthy evidenceSuspicious evidence
Intent / inputsOwner, scope and authoritative inputs are explicit and versioned where applicableHidden defaults, stale inventory or competing sources of truth
Decision / executionPlan or decision is explainable and actions are bounded per targetBlind fan-out, implicit assumptions or success based only on executor status
State / verificationTarget is re-observed and acceptance criteria prove the intended outcomeNo read-back, perpetual drift, partial side effects or unresolved exceptions
Recovery / evidenceRetry, rollback or escalation behavior is defined and auditableUnknown partial completion, unsafe retry or evidence lost during remediation
Confirmation

Confirm action

Continue?