turbot/azure_insights

Query: network_virtual_networks_for_cosmosdb_account

Usage

powerpipe query azure_insights.query.network_virtual_networks_for_cosmosdb_account

Steampipe Tables

SQL

select
distinct lower(split_part(r ->> 'id', '/subnets', 1)) as virtual_network_id
from
azure_cosmosdb_account,
jsonb_array_elements(virtual_network_rules) as r
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);