turbot/azure_compliance

Query: compute_vm_scale_set_boot_diagnostics_enabled

Usage

powerpipe query azure_compliance.query.compute_vm_scale_set_boot_diagnostics_enabled

SQL

select
a.id as resource,
case
when (virtual_machine_diagnostics_profile -> 'bootDiagnostics' ->> 'enabled') :: boolean then 'ok'
else 'alarm'
end as status,
case
when (virtual_machine_diagnostics_profile -> 'bootDiagnostics' ->> 'enabled') :: boolean then a.title || ' boot diagnostics enabled.'
else a.title || ' boot diagnostics disabled.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_compute_virtual_machine_scale_set as a,
azure_subscription as sub
where
sub.subscription_id = a.subscription_id;

Controls

The query is being used by the following controls: