Microsoft.Consumption (stable:2021-05-01)

2025/07/23 • 1 updated methods

ReservationRecommendationDetails_Get (updated)
Description Details of a reservation recommendation for what-if analysis of reserved instances.
Reference Link ¶

⚶ Changes

{
  "#id": "ReservationRecommendationDetails_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "resource": [
              {
                "#name": "onDemandRate",
                "Description": {
                  "new": "On-demand rate of the resource. Most resources use hourly rates, except for BlockBlob, ManagedDisk, Backup, and Azure Files, which use monthly rates. Only hardware rates are included; software rates are excluded.  Note: there could be new resources that use hourly rates in the future.",
                  "old": "On demand rate of the resource."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
{
api-version: string ,
resourceScope: string ,
scope: string ,
region: string ,
term: string ,
lookBackPeriod: string ,
product: string ,
}

⚐ Response (200)

{
location: string ,
sku: string ,
etag: string ,
properties:
{
currency: string ,
resource:
{
appliedScopes:
[
string ,
]
,
onDemandRate: number ,
product: string ,
region: string ,
reservationRate: number ,
resourceType: string ,
}
,
resourceGroup: string ,
savings:
{
calculatedSavings:
[
{
onDemandCost: number ,
overageCost: number ,
quantity: number ,
reservationCost: number ,
totalReservationCost: number ,
reservedUnitCount: number ,
savings: number ,
}
,
]
,
lookBackPeriod: integer ,
recommendedQuantity: number ,
reservationOrderTerm: string ,
savingsType: string ,
unitOfMeasure: string ,
}
,
scope: string ,
usage:
{
firstConsumptionDate: string ,
lastConsumptionDate: string ,
lookBackUnitType: string ,
usageData:
[
number ,
]
,
usageGrain: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}