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

Query: cost_and_usage_actual_overview_dashboard_monthly_cost

Usage

powerpipe query azure_cost_and_usage_insights.query.cost_and_usage_actual_overview_dashboard_monthly_cost

SQL

select
strftime(date_trunc('month', date), '%b %Y') as "Month",
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)
order by
date_trunc('month', date);

Params

ArgsNameDefaultDescriptionVariable
$1subscription_ids

    Dashboards

    The query is used in the dashboards: