turbot/azure_insights

Query: sql_server_by_subscription

Usage

powerpipe query azure_insights.query.sql_server_by_subscription

SQL

select
sub.title as "Subscription",
count(s.*) as "Servers"
from
azure_sql_server as s,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id
group by
sub.title
order by
sub.title;

Dashboards

The query is used in the dashboards: