Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Declarative Automation

Direct answer

Declarative Automation expresses the intended end state or policy and lets an engine determine the actions required to converge current state toward that declaration.

When to use this

Use it when configuring, checking or troubleshooting Declarative Automation in Automation Fundamentals.

First 30 seconds

1. Declarative: describe the end state; the tool works out steps.

2. Easier to review and idempotent by design.

3. Tool manages ordering/dependencies.

4. Drift is visible as diffs.

5. Examples: Terraform, Kubernetes, Ansible modules, DSC.

Operational verification

desired state declaration → engine computes changes → apply

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 declaration/reconciliation semantics; provider and platform Domains own resource-specific behavior and service impact.
Scope / prerequisiteUse it when configuring, checking or troubleshooting Declarative Automation 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

declaration → current-state discovery → dependency graph/delta → plan → apply → read-back → convergence decision

Healthy evidence: the declaration is versioned, planned changes are explainable, unmanaged fields are known and target read-back converges on the declared invariant.

Step 2 Failure modes and next checks Narrow the fault

Suspicious evidence: perpetual diff, hidden defaults, unexpected resource replacement, stale state reads or declarations whose provider behavior is not understood.

Step 3 Common mistakes Narrow the fault
  • Mixing declarative tools with manual imperative changes.
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
  • Declarative ≠ idempotent automatically; provider behavior, unknown state and side effects can still break convergence.
  • Declarative ≠ no ordering; dependencies and resource graphs still impose execution relationships.
  • Desired configuration ≠ observed reality; drift and failed apply can leave state divergent.
  • Less procedural code ≠ less operational complexity; the engine/provider absorbs some complexity rather than eliminating it.
Key checks
  • terraform plan — declared vs actual
  • kubectl diff -f manifest.yaml — Kubernetes declarative diff
  • ansible-playbook --check --diff — declared state preview
ReferenceWhat it is1 section · depth on demand

Core model

Define desired properties and constraints, obtain current state, compute a delta or plan, apply provider-specific actions and verify convergence rather than encoding every procedural step.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A valid declaration expresses intent, but it does not show the engine can reach that state or that the provider will do so without disruptive replacement.

In depth

Declarative automation describes what the end state should be and leaves it to the tool to work out how to get there. "This switch has VLANs 10 and 20 named MGMT and USERS" is declarative; "run these five commands" is imperative. The tool compares current and desired state, and changes only what differs.

DeclarativeImperative
DescribesEnd stateSteps
Re-runSafe, idempotent by designMay repeat actions
DriftDetected and correctedNot visible
Learning curveTool's modelFamiliar commands
ExamplesTerraform, Kubernetes, DSC, Ansible state modulesShell scripts, CLI sequences

Declarative approaches shine for long-lived infrastructure; imperative steps remain useful for one-off operations, ordered procedures and things the declarative tool cannot model.

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 > Declarative Automation. 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
declarative automationdeclarative configurationdesired state automationdeclarative model
Embedded reference data

Quick lookup tables

Declarative Automation automation boundary map

Fast intent, state, execution, verification and recovery boundaries for Declarative Automation.

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?