Skip to main content

benefit_utilization_summaries

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

Overview

Namebenefit_utilization_summaries
TypeResource
Idazure.cost_management.benefit_utilization_summaries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
kindstringSupported values: 'SavingsPlan'. Required. Known values are: "IncludedQuantity", "Reservation", and "SavingsPlan".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
list_by_billing_profile_idselectbilling_account_id, billing_profile_idgrainParameter, filterLists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'.
list_by_savings_plan_idselectsavings_plan_order_id, savings_plan_id$filter, grainParameterLists the savings plan utilization summaries for daily or monthly grain.
list_by_billing_account_idselectbilling_account_idgrainParameter, filterLists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'.
list_by_savings_plan_orderselectsavings_plan_order_id$filter, grainParameterLists the savings plan utilization summaries for daily or monthly grain.

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
billing_account_idstringBillingAccount ID. Required.
billing_profile_idstringBilling Profile ID. Required.
savings_plan_idstringSavings plan ID. Required.
savings_plan_order_idstringSavings plan order ID. Required.
$filterstringSupports filtering by properties/usageDate. Default value is None.
filterstringSupports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. Default value is None.
grainParameterstringGrain. Known values are: "Hourly", "Daily", and "Monthly". Default value is None.

SELECT examples

Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.cost_management.benefit_utilization_summaries
WHERE billing_account_id = '{{ billing_account_id }}' -- required
AND billing_profile_id = '{{ billing_profile_id }}' -- required
AND grainParameter = '{{ grainParameter }}'
AND filter = '{{ filter }}'
;