turbot/azure_compliance

Query: compute_disk_data_access_auth_mode_enabled

Usage

powerpipe query azure_compliance.query.compute_disk_data_access_auth_mode_enabled

SQL

select
disk.id as resource,
case
when data_access_auth_mode = 'AzureActiveDirectory' then 'ok'
else 'alarm'
end as status,
case
when data_access_auth_mode = 'AzureActiveDirectory' then disk.name || ' data authentication mode enabled.'
else disk.name || ' data authentication mode disabled.'
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: