turbot/tailpipe-mod-azure-cost-and-usage-insights

Query: cost_and_usage_actual_overview_dashboard_top_10_subscriptions

Usage

powerpipe query azure_cost_and_usage_insights.query.cost_and_usage_actual_overview_dashboard_top_10_subscriptions

SQL

select
subscription_name as "Subscription",
round(sum(cost_in_billing_currency), 2) as "Total Cost",
billing_currency as "Currency"
from
azure_cost_and_usage_actual
where
('all' in ($1) or subscription_id in $1)
group by
subscription_name,
billing_currency
order by
sum(cost_in_billing_currency) desc
limit 10;

Params

ArgsNameDefaultDescriptionVariable
$1subscription_ids

    Dashboards

    The query is used in the dashboards: