turbot/azure_insights

Query: network_security_group_attached_enis_count

Usage

powerpipe query azure_insights.query.network_security_group_attached_enis_count

SQL

select
'Attached Network Interfaces' as label,
count(*) as value
from
azure_network_security_group,
jsonb_array_elements(network_interfaces ) as nic
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: