Microsoft.Compute (stable:2025-06-05)

2025/08/08 • 1 new, 1 updated methods

Operations_List (new)
Description List the operations for the provider
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Compute/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: enum ,
actionType: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SpotPlacementScores_Post (updated)
Description Generates placement scores for Spot VM skus.
Reference Link ¶

⚶ Changes

{
  "#id": "SpotPlacementScores_Post",
  "$parameters": {
    "spotPlacementScoresInput": {
      "$properties": [
        {
          "#name": "desiredSizes",
          "Description": {
            "new": "The desired virtual machine SKU sizes.",
            "old": "The desired resource SKUs."
          }
        }
      ]
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "desiredSizes",
          "Description": {
            "new": "The desired virtual machine SKU sizes.",
            "old": "The desired resource SKUs."
          }
        },
        {
          "#name": "placementScores",
          "Description": {
            "new": "A placement score indicating the likelihood of successfully allocating the specified Spot VM(s), as well as the expected lifetimes of the Spot VM(s) after allocation.",
            "old": "The spot placement scores."
          },
          "$items": {
            "$properties": [
              {
                "#name": "availabilityZone",
                "Description": {
                  "new": "The availability zone.",
                  "old": "The availability region."
                }
              },
              {
                "#name": "score",
                "Description": {
                  "new": "A placement score indicating the likelihood of successfully allocating the specified Spot VM(s), as well as the expected lifetimes of the Spot VM(s) after allocation.",
                  "old": "The placement score."
                }
              }
            ]
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate
{
api-version: string ,
subscriptionId: string ,
location: string ,
spotPlacementScoresInput:
{
desiredLocations:
[
string ,
]
,
desiredSizes:
[
{
sku: string ,
}
,
]
,
desiredCount: integer ,
availabilityZones: boolean ,
}
,
}

⚐ Response (200)

{
desiredLocations:
[
string ,
]
,
desiredSizes:
[
{
sku: string ,
}
,
]
,
desiredCount: integer ,
availabilityZones: boolean ,
placementScores:
[
{
sku: string ,
region: string ,
availabilityZone: string ,
score: string ,
isQuotaAvailable: boolean ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}