Use it when configuring, checking or troubleshooting Declarative Automation in Automation Fundamentals.
Declarative Automation
Declarative Automation expresses the intended end state or policy and lets an engine determine the actions required to converge current state toward that declaration.
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.
desired state declaration → engine computes changes → apply
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
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 · 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.
- 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.
terraform plan— declared vs actualkubectl diff -f manifest.yaml— Kubernetes declarative diffansible-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.
| Declarative | Imperative | |
|---|---|---|
| Describes | End state | Steps |
| Re-run | Safe, idempotent by design | May repeat actions |
| Drift | Detected and corrected | Not visible |
| Learning curve | Tool's model | Familiar commands |
| Examples | Terraform, Kubernetes, DSC, Ansible state modules | Shell 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.
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 > 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%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
Declarative Automation automation boundary map
Fast intent, state, execution, verification and recovery boundaries for Declarative Automation.
| 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 |