turbot/azure_insights

Query: network_security_group_egress_rules_count

Usage

powerpipe query azure_insights.query.network_security_group_egress_rules_count

SQL

select
'Egress Rules' as label,
count(*) as value
from
azure_network_security_group,
jsonb_array_elements(security_rules || default_security_rules ) as rules
where
rules -> 'properties' ->> 'direction' = 'Outbound'
and lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: