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

Query: cost_and_usage_actual_cost_by_service_dashboard_monthly_cost

Usage

powerpipe query azure_cost_and_usage_insights.query.cost_and_usage_actual_cost_by_service_dashboard_monthly_cost

SQL

select
strftime(date_trunc('month', date), '%b %Y') as "Month",
consumed_service as "Service",
round(sum(cost_in_billing_currency), 2) as "Total Cost"
from
azure_cost_and_usage_actual
where
('all' in ($1) or subscription_id in $1)
group by
date_trunc('month', date),
consumed_service
order by
date_trunc('month', date),
sum(cost_in_billing_currency) desc;

Params

ArgsNameDefaultDescriptionVariable
$1subscription_ids

    Dashboards

    The query is used in the dashboards: