{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-spot-placement-scores-input-schema.json",
  "title": "SpotPlacementScoresInput",
  "description": "SpotPlacementScores API Input.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-spotplacementscores-api-openapi.yml#/components/schemas/SpotPlacementScoresInput",
  "type": "object",
  "properties": {
    "desiredLocations": {
      "type": "array",
      "description": "The desired regions. If not set, the location from the request URI is used as the desired location. Each location in this list must be a valid Azure region.",
      "items": {
        "type": "string"
      }
    },
    "desiredSizes": {
      "type": "array",
      "description": "The desired virtual machine SKU sizes.",
      "items": {
        "$ref": "#/$defs/ResourceSize"
      }
    },
    "desiredCount": {
      "type": "integer",
      "format": "int32",
      "description": "Desired instance count per region/zone based on the scope. If not set, defaults to 1."
    },
    "availabilityZones": {
      "type": "boolean",
      "description": "Defines if the scope is zonal or regional."
    }
  },
  "$defs": {
    "ResourceSize": {
      "type": "object",
      "description": "SpotPlacementRecommender API response.",
      "properties": {
        "sku": {
          "type": "string",
          "description": "The resource's CRP virtual machine SKU size."
        }
      }
    }
  }
}