turbot/azure_insights

Query: network_express_route_circuit_peering_count

Usage

powerpipe query azure_insights.query.network_express_route_circuit_peering_count

SQL

select
'Peerings' as label,
jsonb_array_length(peerings) as value,
case when jsonb_array_length(peerings) > 0 then 'ok' else 'alert' end as type
from
azure_express_route_circuit
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: