Use this when checking systems against baselines automatically and collecting audit evidence.
Compliance Automation
Compliance automation continuously checks systems against baselines like CIS Benchmarks with policy as code, collects evidence automatically and can remediate drift, instead of manual audit checklists.
1. Compliance automation: baselines, policy as code, scans, evidence, remediation.
2. Continuous, not yearly.
3. Map to frameworks.
4. Exceptions as code.
5. Dashboards.
policy → checks → evidence → remediation
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 Verify a finding from raw source through rule result and next collection Verify boundary
Select a bounded Compliance Automation rule and asset, record the rule version, applicability decision, collection timestamp/source and normalized field values. Re-evaluate the rule deterministically and confirm the displayed Pass/Fail/Not Applicable result matches the same preserved input. For a remediated failure, read the target directly and run the next collection/evaluation cycle until the technical finding changes without relying on a waiver. A policy-engine success status shows execution of the evaluator, not source freshness, target correctness or control effectiveness beyond the measured rule.
Step 2 Verification path Verify boundary
Record policy/bundle revision, rule ID, input object ID and evaluation/run ID; inspect the runtime/control-plane result; then query the compliance decision, report and optionally remediated target state through an independent read path and compare it with the versioned intent. For Automation → Compliance Automation, the evidence must connect the control-plane result to the compliance decision, report and optionally remediated target state and explain any gap between desired, controller-reported and consumer-visible state.
Step 3 Branch compliance errors into collection, parsing, applicability and evaluation Narrow the fault
If Compliance Automation reports widespread Unknown or missing values, verify collection success and source freshness before changing rules. If raw state exists but fields are absent, inspect parser/normalization version. If the rule evaluates the wrong assets, check platform/role applicability and inventory metadata. If a Pass/Fail seems wrong, reproduce the rule against the preserved normalized input and compare operators, defaults and exception handling. If remediation repeatedly reopens the same finding, compare target read-back and next collection cycle. A green dashboard does not show collection coverage or that exceptions are technically compliant.
Step 4 Where it fails Narrow the fault
Failure analysis for Automation → Compliance Automation should follow the path through the components: policy+input → parse/load → evaluation → decision/report → optional enforcement/remediation → target → re-evaluation. Common failure classes include stale policy, incomplete input, exception creep, false compliance from missing data, destructive auto-remediation and passing policy check without validating actual target. Before retrying a mutating operation, read current target state using the stable identity policy/bundle revision, rule ID, input object ID and evaluation/run ID; if state is unknown, stop broad retries.
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.
Subtopics
Go one level deeper into this subject.
Configuration baselines define the approved configuration for a system type, versioned and used as the reference that compliance checks and drift detection compare against.
Subtopic Policy as CodePolicy as code writes compliance and security rules as code, with tools like Open Policy Agent (Rego), Sentinel or Kyverno, so policies are versioned, tested and enforced automatically in pipelines.
Subtopic Compliance ChecksCompliance checks are automated tests that compare a system's configuration with a required rule, such as password policy or disabled services, returning pass or fail with details.
Subtopic CIS BenchmarksCIS Benchmarks are consensus hardening guides for operating systems, cloud and applications, with Level 1 and Level 2 profiles.
Subtopic Security BaselinesSecurity baselines are the minimum security settings for a platform, such as Microsoft security baselines or DISA STIGs, applied with GPO, Intune, DSC or Ansible and checked continuously.
Subtopic Configuration AuditingConfiguration auditing reviews the current configuration of systems and devices against standards and previous versions, highlighting unauthorized or risky changes.
Subtopic Evidence CollectionEvidence collection automatically gathers proof for audits — compliance scan results, configs, logs, screenshots and reports — with timestamps, so evidence is current and does not need to be compiled by hand.
Subtopic Drift DetectionDrift detection in compliance automation spots when a system moves away from its approved baseline, often because of manual changes, and raises a finding or triggers remediation.
Subtopic Auto-remediationAuto-remediation in compliance automation fixes non-compliant settings automatically when a check fails, such as re-enabling a firewall or resetting a weak SSH setting, with approval rules for risky changes.
- Policy as code makes compliance rules testable.
- Automated remediation needs guardrails.
- Evidence should be collected continuously.
- Baselines and policies as code — definitions
- Automated checks and evidence — continuous compliance
- Remediation automation — fixing
ReferenceWhy it matters1 section · depth on demand
Compliance automation separates collection, normalization, rule applicability and finding state
Compliance Automation is reliable only when each finding can be traced to the collected source state, normalization/parser version, rule ID/version and applicability scope. A baseline rule that does not apply to a platform or role should be Not Applicable, not silently Pass. Evidence freshness matters because a correct result from an old snapshot is not current compliance. Exceptions/waivers are governance state layered on top of the technical finding; they must not rewrite the observation. Automated remediation is a separate change boundary and should consume the finding without erasing its original evidence.
ReferenceHow it works1 section · depth on demand
In depth
Compliance automation checks systems against required standards continuously and produces evidence for auditors, instead of manual spot checks before an audit.
| Element | Example |
|---|---|
| Policy as code | Rules in Git (OPA, InSpec, YAML checks) |
| Scheduled scans | Daily configuration and vulnerability checks |
| Reporting | Compliance percentage per system and control |
| Remediation | Tickets or automatic fixes |
| Evidence | Stored scan results with timestamps |
Map each automated check to the control it supports (CIS, ISO 27001, NIS2 requirements) so reports answer auditors' questions directly.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Automation → Compliance Automation is owned at runtime by the policy engine and automation pipeline evaluating machine-readable policy against versioned input. Its durable intent is versioned policy/rule bundle, input schema, exceptions and enforcement/remediation mode; the stable identity contract is policy/bundle revision, rule ID, input object ID and evaluation/run ID. The consumer-visible target is the compliance decision, report and optionally remediated target state. The operating invariants are that policy/input revisions are traceable, exceptions are explicit, deny/allow semantics are understood, remediation is bounded and post-remediation state is re-evaluated. Follow the chain of components policy+input → parse/load → evaluation → decision/report → optional enforcement/remediation → target → re-evaluation and record which layer currently owns truth.
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 Compliance 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%Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum policy revision, rule ID, input/object ID, decision, violations, exception/waiver, remediation action and post-state decision.