turbot/azure_compliance

Query: eventhub_namespace_cmk_encryption_enabled

Usage

powerpipe query azure_compliance.query.eventhub_namespace_cmk_encryption_enabled

SQL

select
a.id as resource,
case
when encryption ->> 'keySource' = 'Microsoft.KeyVault' then 'ok'
else 'alarm'
end as status,
case
when encryption ->> 'keySource' = 'Microsoft.KeyVault' then a.name || ' CMK encryption enabled.'
else a.name || ' CMK encryption disabled.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_eventhub_namespace as a,
azure_subscription as sub
where
sub.subscription_id = a.subscription_id;

Controls

The query is being used by the following controls: