turbot/azure_insights

Query: network_subnets_for_sql_server

Usage

powerpipe query azure_insights.query.network_subnets_for_sql_server

Steampipe Tables

SQL

select
lower(r -> 'properties' ->> 'virtualNetworkSubnetId') as subnet_id
from
azure_sql_server,
jsonb_array_elements(virtual_network_rules) as r
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);