turbot/steampipe-mod-azure-compliance

Query: storage_account_private_endpoint_enabled

Usage

powerpipe query azure_compliance.query.storage_account_private_endpoint_enabled

SQL

select
sa.id as resource,
case
when private_endpoint_connections is not null and jsonb_array_length(private_endpoint_connections) > 0 then 'ok'
else 'alarm'
end as status,
case
when private_endpoint_connections is null then name || ' has no private endpoint connections configured.'
when jsonb_array_length(private_endpoint_connections) = 0 then name || ' has no private endpoint connections.'
else name || ' has ' || jsonb_array_length(private_endpoint_connections) || ' private endpoint connection(s).'
end as reason
, sa.resource_group as resource_group
, sub.display_name as subscription
from
azure_storage_account sa,
azure_subscription sub
where
sub.subscription_id = sa.subscription_id;

Controls

The query is being used by the following controls: