Skip to main content

reservation_recommendations

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

Overview

Namereservation_recommendations
TypeResource
Idazure.consumption.reservation_recommendations

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.
etagstringThe etag for the resource.
kindstringSpecifies the kind of reservation recommendation. Required. Known values are: "legacy" and "modern".
locationstringResource location.
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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_scope$filterList of recommendations for purchasing 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
resource_scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.
$filterstringMay be used to filter reservationRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Single'; properties/resourceType with allowed values ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple'] and default value 'VirtualMachines'; and properties/lookBackPeriod with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last7Days'. Default value is None.

SELECT examples

List of recommendations for purchasing reserved instances.

SELECT
id,
name,
etag,
kind,
location,
sku,
systemData,
tags,
type
FROM azure.consumption.reservation_recommendations
WHERE resource_scope = '{{ resource_scope }}' -- required
AND $filter = '{{ $filter }}'
;