turbot/azure_insights

Query: sql_database_by_subscription

Usage

powerpipe query azure_insights.query.sql_database_by_subscription

SQL

select
s.title as "Subscription",
count(d.*) as "Databases"
from
azure_sql_database as d,
azure_subscription as s
where
s.subscription_id = d.subscription_id
group by
s.title
order by
s.title;

Dashboards

The query is used in the dashboards: