Microsoft Azure Reservation Recommendations API

The ReservationRecommendations API from Microsoft Azure, for reservationrecommendations.

GitHub OpenAPI
Business capability
IT Financial Management BC-600.80

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations List reserved instance purchase recommendations · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Which reserved instances should I buy to save money on my subscription?”
“Can I filter reservation recommendations, say by look-back period or scope?”
Tell an agent
List reservation purchase recommendations for subscription {subscription}.
Show reserved instance recommendations for subscription {subscription} matching {filter}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-reservationrecommendations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-reservationrecommendations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2019-04-01-preview
  title: Microsoft Azure ConsumptionManagementClient Reservation…
  description: Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ReservationRecommendations
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations:
    get:
      tags:
      - ReservationRecommendations
      operationId: microsoftAzureReservationrecommendationsList
      description: List of recommendations for purchasing reserved instances.
      externalDocs:
        url: https://docs.microsoft.com/en-us/rest/api/consumption/
      x-ms-examples:
        ReservationRecommendations:
          $ref: ./examples/ReservationRecommendationsList.json
        ReservationRecommendationsFilterByScopeLookBackPeriod:
          $ref: ./examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json
      parameters:
      - name: $filter
        description: May be used to filter reservationRecommendations by properties/scope and properties/lookBackPeriod.
        in: query
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      - $ref: '#/components/parameters/subscriptionIdParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationRecommendationsListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
components:
  schemas:
    ReservationRecommendationsListResult:
      description: Result of listing reservation recommendations.
      properties:
        value:
          description: The list of reservation recommendations.
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/ReservationRecommendation'
        nextLink:
          description: The link (url) to the next page of results.
          type: string
          readOnly: true
    ReservationRecommendation:
      description: Reservation recommendation resource.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      - $ref: '#/components/schemas/ResourceAttributes'
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ReservationRecommendationProperties'
          title: Reservation Recommendation properties
    ErrorResponse:
      description: Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
      type: object
      properties:
        error:
          description: The details of the error.
          $ref: '#/components/schemas/ErrorDetails'
    ReservationRecommendationProperties:
      description: The properties of the reservation recommendation.
      properties:
        lookBackPeriod:
          description: The number of days of usage to look back for recommendation.
          type: string
          readOnly: true
        meterId:
          description: The meter id (GUID)
          type: string
          format: uuid
          readOnly: true
        term:
          description: RI recommendations in one or three year terms.
          type: string
          readOnly: true
        costWithNoReservedInstances:
          description: The total amount of cost without reserved instances.
          type: number
          format: decimal
          readOnly: true
        recommendedQuantity:
          description: Recommended quality for reserved instances.
          type: number
          format: decimal
          readOnly: true
        totalCostWithReservedInstances:
          description: The total amount of cost with reserved instances.
          type: number
          format: decimal
          readOnly: true
        netSavings:
          description: Total estimated savings with reserved instances.
          type: number
          format: decimal
          readOnly: true
        firstUsageDate:
          description: The usage date for looking back.
          type: string
          format: date-time
          readOnly: true
        scope:
          description: Shared or single recommendation.
          type: string
          readOnly: true
    ErrorDetails:
      description: The details of the error.
      properties:
        code:
          description: Error code.
          type: string
          readOnly: true
        message:
          description: Error message indicating why the operation failed.
          type: string
          readOnly: true
    ResourceAttributes:
      description: The Resource model definition.
      properties:
        location:
          readOnly: true
          type: string
          description: Resource location
        sku:
          readOnly: true
          type: string
          description: Resource sku
    Resource:
      description: The Resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id.
        name:
          readOnly: true
          type: string
          description: Resource name.
        type:
          readOnly: true
          type: string
          description: Resource type.
        tags:
          readOnly: true
          type: object
          additionalProperties:
            type: string
          description: Resource tags.
      x-ms-azure-resource: true
  parameters:
    apiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Version of the API to be used with the client request. The current version is 2019-04-01-preview.
      schema:
        type: string
    subscriptionIdParameter:
      name: subscriptionId
      in: path
      description: Azure Subscription ID.
      required: true
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-01-01/consumption.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)