Skip to main content

aggregated_cost_for_billing_period_by_management_groups

Creates, updates, deletes, gets or lists an aggregated_cost_for_billing_period_by_management_groups resource.

Overview

Nameaggregated_cost_for_billing_period_by_management_groups
TypeResource
Idazure.consumption.aggregated_cost_for_billing_period_by_management_groups

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectThe properties of the Management Group Aggregated Cost. (title: Management Group Aggregated Cost properties)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagementGroupId, billingPeriodNameProvides the aggregate cost of a management group and all child management groups by specified billing period

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billingPeriodNamestringBilling Period Name.
managementGroupIdstringAzure Management Group ID.

SELECT examples

Provides the aggregate cost of a management group and all child management groups by specified billing period

SELECT
id,
name,
properties,
type
FROM azure.consumption.aggregated_cost_for_billing_period_by_management_groups
WHERE managementGroupId = '{{ managementGroupId }}' -- required
AND billingPeriodName = '{{ billingPeriodName }}' -- required
;