check_compliance
Evaluate Azure resource compliance against security and governance controls. Returns pass/fail verdicts with provenance from Azure Resource Graph, policy, or Defender.
Instructions
Evaluate named security/governance controls and report where each verdict came from.
Honest about provenance: every finding carries a source
(arg | azure_policy | defender), and controls whose signal is not in
the available data report not_evaluable rather than guessing. Most controls
read the Azure Resource Graph resources row directly (no policy assignment
required); guest_config_extension reads guest-config compliance from the
ARG policyresources table and is not_evaluable when no policy is assigned.
disk_encryption is partial — it confirms encryption-at-host from ARG but
cannot see disk-level/ADE encryption, so a missing host-encryption signal is
not_evaluable, not fail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Restrict to resources whose ARG resource ID contains this string (matches a subscription id, resource group, or resource name). | |
| control | No | Which control to check, or None to check every applicable control. Controls: guest_config_extension, tls_min_1_2, required_tags (env/owner/costCenter), disk_encryption, public_network_access. | |
| resource_type | No | Restrict to a single ARG type, e.g. "microsoft.compute/virtualmachines". | |
| status_filter | No | Return only "fail" rows (default), only "pass" rows, only "not_evaluable" rows, or "all". The default ("fail") answers "what's actively non-compliant?" and excludes "not_evaluable". | fail |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |