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:

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
locationstringResource Location.
propertiesobjectThe properties of the reservation recommendation. (title: Reservation Recommendation details properties)
skustringResource sku
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
getselectresourceScope, 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.
productstringFilter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks)
regionstringUsed to select the region the recommendation should be generated for.
resourceScopestringThe 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
scopestringScope of the reservation.
termstringSpecify length of reservation recommendation term.
$filterstringUsed to filter reservation recommendation details by: properties/subscriptionId can be specified for billing account and billing profile paths.

SELECT examples

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

SELECT
id,
name,
location,
properties,
sku,
type
FROM azure.consumption.reservation_recommendation_details
WHERE resourceScope = '{{ resourceScope }}' -- required
AND scope = '{{ scope }}' -- required
AND region = '{{ region }}' -- required
AND term = '{{ term }}' -- required
AND lookBackPeriod = '{{ lookBackPeriod }}' -- required
AND product = '{{ product }}' -- required
AND $filter = '{{ $filter }}'
;