turbot/azure_insights

Query: network_firewalls_for_network_public_ip

Usage

powerpipe query azure_insights.query.network_firewalls_for_network_public_ip

SQL

select
lower(f.id) as network_firewall_id
from
azure_firewall as f,
jsonb_array_elements(ip_configurations) as c
left join azure_public_ip as ip on lower(ip.id) = lower(c -> 'publicIPAddress' ->> 'id')
where
lower(ip.id) = $1
and ip.subscription_id = split_part($1, '/', 3);