turbot/azure_insights

Query: network_security_group_by_subscription

Usage

powerpipe query azure_insights.query.network_security_group_by_subscription

SQL

select
sub.title as "Subscription",
count(n.*) as "Network Security Groups"
from
azure_network_security_group as n,
azure_subscription as sub
where
sub.subscription_id = n.subscription_id
group by
sub.title
order by
sub.title;

Dashboards

The query is used in the dashboards: