Microsoft Azure Spot Placement Recommender API

The spotPlacementRecommender API from Microsoft Azure, for spotplacementrecommender.

GitHub OpenAPI

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

POST /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender/generate Score Spot VM placement options · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Compute… #
Ask an LLM
“Which regions and VM sizes are most likely to have Spot capacity?”
“Can I get placement scores for a Spot VM count across availability zones?”
Tell an agent
Score Spot placement from {location} for sizes {desiredSizes} in {desiredLocations}.
Recommend Spot placement for {desiredCount} VMs of {desiredSizes} with zones {availabilityZones}.

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-spotplacementrecommender-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-spotplacementrecommender-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure ComputeDiagnosticResourceProviderClient…
  description: The Compute Diagnostic Resource Provider Client
  version: 2024-03-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: spotPlacementRecommender
paths:
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender/generate
  : post:
      tags:
      - spotPlacementRecommender
      operationId: microsoftAzureSpotplacementrecommenderPost
      description: Generates placement scores for Spot VM skus.
      parameters:
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter
      - $ref: ../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpotPlacementRecommenderResponse'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Returns spot VM placement scores for given configurations.:
          $ref: ./examples/SpotPlacementRecommender.json
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Compute…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpotPlacementRecommenderInput'
        description: SpotPlacementRecommender object supplied in the body of the Post spot placement recommender operation.
        required: true
components:
  schemas:
    SpotPlacementRecommenderInput:
      type: object
      properties:
        desiredLocations:
          type: array
          items:
            type: string
          description: The desired regions
        desiredSizes:
          type: array
          items:
            $ref: '#/components/schemas/ResourceSize'
          description: The desired resource SKUs.
        desiredCount:
          type: integer
          format: int32
          description: Desired instance count per region/zone based on the scope.
        availabilityZones:
          type: boolean
          description: Defines if the scope is zonal or regional.
      description: SpotPlacementRecommender API Input.
    PlacementScore:
      type: object
      properties:
        sku:
          type: string
          description: The resource's CRP virtual machine SKU size.
        region:
          type: string
          description: The region.
        availabilityZone:
          type: string
          description: The availability region.
        score:
          type: string
          description: The placement score.
        isQuotaAvailable:
          type: boolean
          description: Whether the desired quota is available.
      description: The spot placement score for sku/region/zone combination.
    ResourceSize:
      type: object
      properties:
        sku:
          type: string
          description: The resource's CRP virtual machine SKU size.
      description: SpotPlacementRecommender API response.
    SpotPlacementRecommenderResponse:
      type: object
      properties:
        desiredLocations:
          type: array
          items:
            type: string
          description: The desired regions
        desiredSizes:
          type: array
          items:
            $ref: '#/components/schemas/ResourceSize'
          description: The desired resource SKUs.
        desiredCount:
          type: integer
          format: int32
          description: Desired instance count per region/zone based on the scope.
        availabilityZones:
          type: boolean
          description: Defines if the scope is zonal or regional.
        placementScores:
          type: array
          items:
            $ref: '#/components/schemas/PlacementScore'
          description: The spot placement scores.
      description: SpotPlacementRecommender API response.
  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