turbot/azure_insights

Query: network_subnets_for_key_vault

Usage

powerpipe query azure_insights.query.network_subnets_for_key_vault

SQL

select
lower(s.id) as subnet_id
from
azure_key_vault as v,
jsonb_array_elements(network_acls -> 'virtualNetworkRules') as r
left join azure_subnet as s on lower(s.id) = lower(r ->> 'id')
where
lower(v.id) = $1
and v.subscription_id = split_part($1, '/', 3);