turbot/azure_compliance

Query: kusto_cluster_encrypted_at_rest_with_cmk

Usage

powerpipe query azure_compliance.query.kusto_cluster_encrypted_at_rest_with_cmk

SQL

select
kv.id as resource,
case
when
key_vault_properties -> 'keyName' is not null
and key_vault_properties -> 'keyVaultUri' is not null
and key_vault_properties -> 'keyVersion' is not null
then 'ok'
else 'alarm'
end as status,
case
when
key_vault_properties -> 'keyName' is not null
and key_vault_properties -> 'keyVaultUri' is not null
and key_vault_properties -> 'keyVersion' is not null
then name || ' encrypted at rest with CMK.'
else name || ' not encrypted at rest with CMK.'
end as reason
, kv.resource_group as resource_group
, sub.display_name as subscription
from
azure_kusto_cluster as kv,
azure_subscription as sub
where
sub.subscription_id = kv.subscription_id;

Controls

The query is being used by the following controls: