turbot/azure_insights

Query: network_security_group_by_resource_group

Usage

powerpipe query azure_insights.query.network_security_group_by_resource_group

SQL

select
resource_group || ' [' || sub.title || ']' as "Resource Group",
count(n.*) as "Network Security Groups"
from
azure_network_security_group as n,
azure_subscription as sub
where
n.subscription_id = sub.subscription_id
group by
resource_group,
sub.title
order by
resource_group;

Dashboards

The query is used in the dashboards: