turbot/azure_insights

Query: network_public_ips_for_network_firewall

Usage

powerpipe query azure_insights.query.network_public_ips_for_network_firewall

SQL

select
lower(ip.id) as public_ip_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
ip.id is not null
and lower(f.id) = $1
and f.subscription_id = split_part($1, '/', 3);