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

2025/07/23 • 2 new methods

SpotPlacementScores_Get (new)
Description Gets Spot Placement Scores metadata.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
supportedResourceTypes:
[
string ,
]
,
}
,
}

⚐ Response (default)

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

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate
{
subscriptionId: string ,
location: string ,
api-version: 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 ,
}
,
]
,
}
,
}