Skip to main content

vw_aggregated_cost_for_billing_period_by_management_groups

Creates, updates, deletes, gets or lists a vw_aggregated_cost_for_billing_period_by_management_groups resource.

Overview

Namevw_aggregated_cost_for_billing_period_by_management_groups
TypeView
Idazure.consumption.vw_aggregated_cost_for_billing_period_by_management_groups

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.billingPeriodId') as "billing_period_id",
JSON_EXTRACT(properties, '$.usageStart') as "usage_start",
JSON_EXTRACT(properties, '$.usageEnd') as "usage_end",
JSON_EXTRACT(properties, '$.azureCharges') as "azure_charges",
JSON_EXTRACT(properties, '$.marketplaceCharges') as "marketplace_charges",
JSON_EXTRACT(properties, '$.chargesBilledSeparately') as "charges_billed_separately",
JSON_EXTRACT(properties, '$.currency') as "currency",
JSON_EXTRACT(properties, '$.children') as "children",
JSON_EXTRACT(properties, '$.includedSubscriptions') as "included_subscriptions",
JSON_EXTRACT(properties, '$.excludedSubscriptions') as "excluded_subscriptions",
managementGroupId,
billingPeriodName
FROM azure.consumption.aggregated_cost_for_billing_period_by_management_groups
WHERE managementGroupId = 'replace-me' AND billingPeriodName = 'replace-me';