cost_and_usage_actual_cost_by_resource_group_dashboard_monthly_costcost_and_usage_actual_cost_by_resource_group_dashboard_resource_group_costscost_and_usage_actual_cost_by_resource_group_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_resource_group_dashboard_top_10_resource_groupscost_and_usage_actual_cost_by_resource_group_dashboard_total_costcost_and_usage_actual_cost_by_resource_group_dashboard_total_resource_groupscost_and_usage_actual_cost_by_resource_group_dashboard_total_subscriptionscost_and_usage_actual_cost_by_service_dashboard_monthly_costcost_and_usage_actual_cost_by_service_dashboard_service_costscost_and_usage_actual_cost_by_service_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_service_dashboard_top_10_servicescost_and_usage_actual_cost_by_service_dashboard_total_costcost_and_usage_actual_cost_by_service_dashboard_total_servicescost_and_usage_actual_cost_by_service_dashboard_total_subscriptionscost_and_usage_actual_cost_by_subscription_dashboard_cost_and_usage_actual_cost_by_subscription_detailscost_and_usage_actual_cost_by_subscription_dashboard_monthly_cost_and_usage_actual_cost_by_subscriptioncost_and_usage_actual_cost_by_subscription_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_subscription_dashboard_total_costcost_and_usage_actual_cost_by_subscription_dashboard_total_subscriptionscost_and_usage_actual_cost_by_tag_dashboard_monthly_costcost_and_usage_actual_cost_by_tag_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_tag_dashboard_tag_key_inputcost_and_usage_actual_cost_by_tag_dashboard_tag_value_costscost_and_usage_actual_cost_by_tag_dashboard_top_10_tag_valuescost_and_usage_actual_cost_by_tag_dashboard_total_costcost_and_usage_actual_cost_by_tag_dashboard_total_subscriptionscost_and_usage_actual_overview_dashboard_daily_costcost_and_usage_actual_overview_dashboard_monthly_costcost_and_usage_actual_overview_dashboard_subscriptions_inputcost_and_usage_actual_overview_dashboard_top_10_resource_groupscost_and_usage_actual_overview_dashboard_top_10_resourcescost_and_usage_actual_overview_dashboard_top_10_servicescost_and_usage_actual_overview_dashboard_top_10_subscriptionscost_and_usage_actual_overview_dashboard_total_costcost_and_usage_actual_overview_dashboard_total_subscriptions
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
Tags
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_actualwhere ('all' in ($1) or subscription_id in $1)group by subscription_name, billing_currencyorder by sum(cost_in_billing_currency) desclimit 10;
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | subscription_ids |
Dashboards
The query is used in the dashboards: