turbot/azure_compliance

Query: servicebus_name_space_private_link_used

Usage

powerpipe query azure_compliance.query.servicebus_name_space_private_link_used

SQL

select
a.id as resource,
case
when sku_name in ('Basic', 'Standard') then 'skip'
when private_endpoint_connections is null then 'info'
when private_endpoint_connections @> '[{"privateLinkServiceConnectionStateStatus": "Approved"}]'::jsonb then 'ok'
else 'alarm'
end as status,
case
when sku_name in ('Basic', 'Standard') then a.name || ' is of ' || sku_name || ' tier.'
when private_endpoint_connections is null then a.name || ' no private link exists.'
when private_endpoint_connections @> '[{"privateLinkServiceConnectionStateStatus": "Approved"}]'::jsonb
then a.name || ' using private link.'
else a.name || ' not using private link.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_servicebus_namespace a,
azure_subscription sub;

Controls

The query is being used by the following controls: