turbot/azure_insights

Query: compute_virtual_machine_by_subscription

Usage

powerpipe query azure_insights.query.compute_virtual_machine_by_subscription

SQL

select
a.title as "Subscription",
count(v.*) as "VMs"
from
azure_compute_virtual_machine as v,
azure_subscription as a
where
a.subscription_id = v.subscription_id
group by
a.title
order by
a.title;

Dashboards

The query is used in the dashboards: