turbot/azure_insights

Query: cosmosdb_account_private_link

Usage

powerpipe query azure_insights.query.cosmosdb_account_private_link

Steampipe Tables

SQL

with private_link_enabled as (
select
distinct s.id
from
azure_cosmosdb_account as s,
jsonb_array_elements(private_endpoint_connections) as connection
where
connection ->> 'PrivateLinkServiceConnectionStateStatus' = 'Approved'
) select
'Private Link' as label,
case
when va.id is not null then 'Enabled'
else 'Disabled' end as value,
case
when va.id is not null then 'ok'
else 'alert' end as type
from
azure_cosmosdb_account as s
left join private_link_enabled as va on s.id = va.id
where
lower(s.id) = $1
and s.subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: