turbot/azure_compliance

Query: kubernetes_cluster_add_on_azure_policy_enabled

Usage

powerpipe query azure_compliance.query.kubernetes_cluster_add_on_azure_policy_enabled

SQL

select
kc.id as resource,
case
when addon_profiles -> 'azurepolicy' ->> 'enabled' = 'true' then 'ok'
else 'alarm'
end as status,
case
when addon_profiles -> 'azurepolicy' ->> 'enabled' = 'true' then name || ' add on azure policy enabled.'
else name || ' add on azure policy disabled.'
end as reason
, kc.resource_group as resource_group
, sub.display_name as subscription
from
azure_kubernetes_cluster kc,
azure_subscription sub
where
sub.subscription_id = kc.subscription_id;

Controls

The query is being used by the following controls: