turbot/azure_compliance

Query: keyvault_managed_hms_purge_protection_enabled

Usage

powerpipe query azure_compliance.query.keyvault_managed_hms_purge_protection_enabled

SQL

select
kv.id as resource,
case
when enable_purge_protection then 'ok'
else 'alarm'
end as status,
case
when enable_purge_protection then name || ' purge protection enabled.'
else name || ' purge protection disabled.'
end as reason,
kv.resource_group as resource_group,
sub.display_name as subscription
from
azure_key_vault_managed_hardware_security_module as kv,
azure_subscription as sub
where
sub.subscription_id = kv.subscription_id;

Controls

The query is being used by the following controls: