turbot/azure_compliance

Query: kubernetes_cluster_os_and_data_disks_encrypted_with_cmk

Usage

powerpipe query azure_compliance.query.kubernetes_cluster_os_and_data_disks_encrypted_with_cmk

SQL

select
c.id as resource,
case
when disk_encryption_set_id is not null then 'ok'
else 'alarm'
end as status,
case
when disk_encryption_set_id is not null then c.name || ' os and data diska encrypted with CMK.'
else c.name || ' os and data diska not encrypted with CMK.'
end as reason,
c.resource_group as resource_group,
sub.display_name as subscription
from
azure_kubernetes_cluster c,
azure_subscription sub
where
sub.subscription_id = c.subscription_id;

Controls

The query is being used by the following controls: