turbot/azure_insights

Query: network_subnets_for_network_firewall

Usage

powerpipe query azure_insights.query.network_subnets_for_network_firewall

SQL

select
lower(s.id) as subnet_id
from
azure_firewall as f,
jsonb_array_elements(ip_configurations) as c
left join azure_subnet as s on lower(s.id) = lower(c -> 'subnet' ->> 'id')
where
lower(f.id) = $1
and f.subscription_id = split_part($1, '/', 3)
and lower(s.id) is not null;