turbot/azure_compliance

Query: container_instance_container_group_encrypted_using_cmk

Usage

powerpipe query azure_compliance.query.container_instance_container_group_encrypted_using_cmk

SQL

select
cg.id as resource,
case
when encryption_properties ->> 'keyName' is not null and encryption_properties ->> 'vaultBaseUrl' is not null then 'ok'
else 'alarm'
end as status,
case
when encryption_properties ->> 'keyName' is not null and encryption_properties ->> 'vaultBaseUrl' is not null then cg.title || ' encrypted with CMK.'
else cg.title || ' not encrypted with CMK.'
end as reason
, cg.resource_group as resource_group
, sub.display_name as subscription
from
azure_container_group as cg,
azure_subscription as sub
where
sub.subscription_id = cg.subscription_id;

Controls

The query is being used by the following controls: