turbot/azure_compliance

Query: compute_disk_public_access_disabled

Usage

powerpipe query azure_compliance.query.compute_disk_public_access_disabled

SQL

select
disk.id as resource,
case
when network_access_policy in ('DenyAll','AllowPrivate') and public_network_access = 'Disabled' then 'ok'
else 'alarm'
end as status,
case
when network_access_policy in ('DenyAll','AllowPrivate') and public_network_access = 'Disabled' then disk.name || ' network access disabled.'
else disk.name || ' network access enabled.'
end as reason
, disk.resource_group as resource_group
, sub.display_name as subscription
from
azure_compute_disk disk,
azure_subscription sub
where
sub.subscription_id = disk.subscription_id;

Controls

The query is being used by the following controls: