Skip to main content

reservation_recommendation_details

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

Overview

Namereservation_recommendation_details
TypeResource
Idazure.consumption.reservation_recommendation_details

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.
currencystringAn ISO 4217 currency code identifier for the costs and savings.
etagstringThe etag for the resource.
locationstringResource Location.
resourceobjectResource specific properties.
resourceGroupstringResource Group.
savingsobjectSavings information for the recommendation.
scopestringScope of the reservation, ex: Single or Shared.
skustringResource sku.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
usageobjectHistorical usage details used to calculate the estimated savings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_scope, scope, region, term, lookBackPeriod, product$filterDetails of a reservation recommendation for what-if analysis of reserved instances.

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
lookBackPeriodstringFilter the time period on which reservation recommendation results are based. Known values are: "Last7Days", "Last30Days", and "Last60Days". Required.
productstringFilter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks). Required.
regionstringUsed to select the region the recommendation should be generated for. Required.
resource_scopestringThe scope associated with reservation recommendation details operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope. Required.
scopestringScope of the reservation. Known values are: "Single" and "Shared". Required.
termstringSpecify length of reservation recommendation term. Known values are: "P1M", "P1Y", and "P3Y". Required.
$filterstringUsed to filter reservation recommendation details by: properties/subscriptionId can be specified for billing account and billing profile paths. Default value is None.

SELECT examples

Details of a reservation recommendation for what-if analysis of reserved instances.

SELECT
id,
name,
currency,
etag,
location,
resource,
resourceGroup,
savings,
scope,
sku,
systemData,
tags,
type,
usage
FROM azure.consumption.reservation_recommendation_details
WHERE resource_scope = '{{ resource_scope }}' -- required
AND scope = '{{ scope }}' -- required
AND region = '{{ region }}' -- required
AND term = '{{ term }}' -- required
AND lookBackPeriod = '{{ lookBackPeriod }}' -- required
AND product = '{{ product }}' -- required
AND $filter = '{{ $filter }}'
;