turbot/azure_insights

Query: cosmosdb_account_firewall_policies

Usage

powerpipe query azure_insights.query.cosmosdb_account_firewall_policies

Steampipe Tables

SQL

select
ip ->> 'ipAddressOrRange' "IP Address/Range",
'Allow' as "Action"
from
azure_cosmosdb_account,
jsonb_array_elements(ip_rules) as ip
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: