turbot/azure_insights

Query: azure_network_private_ip

Usage

powerpipe query azure_insights.query.azure_network_private_ip

Steampipe Tables

SQL

select
ip ->> 'name' as "Name",
ip -> 'properties' ->> 'privateIPAddress' as "IP Address",
ip -> 'properties' ->> 'privateIPAddressVersion' as "Version",
ip -> 'properties' ->> 'privateIPAllocationMethod' as "Allocation Method",
ip -> 'properties' ->> 'primary' as "Primary"
from
azure_network_interface
cross join jsonb_array_elements(ip_configurations) as ip
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);