turbot/azure_insights

Query: network_security_group_attached_subnets_count

Usage

powerpipe query azure_insights.query.network_security_group_attached_subnets_count

SQL

select
'Attached Subnets' as label,
count(*) as value
from
azure_network_security_group,
jsonb_array_elements(subnets) as s
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: