turbot/azure_insights

Query: virtual_network_address_prefixes

Usage

powerpipe query azure_insights.query.virtual_network_address_prefixes

Steampipe Tables

SQL

select
(trim('"' FROM p::text))::cidr as "Address Prefix",
power(2, 32 - masklen( (trim('"' FROM p::text) ):: cidr)) as "Total IPs"
from
azure_virtual_network,
jsonb_array_elements(address_prefixes) as p
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: