Question about "Azure Spot Placement Recommender" api results

김태양 65 Reputation points
2025-04-01T15:19:07.1633333+00:00

Hello, Engineer.

In the results, the Score includes "RestrictedSkuNotAvailable" and "DataNotFoundOrStale".

Could you please explain the meaning and difference between these two results?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,729 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 31,396 Reputation points
    2025-04-01T21:27:51.72+00:00

    When using the Azure Spot Placement Recommender API, the response includes a score field that helps assess the likelihood of successful spot VM allocation in a particular region or zone for a given SKU (VM size). The values like "RestrictedSkuNotAvailable" and "DataNotFoundOrStale" are qualitative indicators that describe why a placement recommendation might not be favorable.

    RestrictedSkuNotAvailable : This means the specific VM SKU (size/type) is restricted or not available in the region/zone you’re querying.

    The restriction might be due to internal policies, regulatory compliance, or subscription limits.

    It can also happen if the SKU is not onboarded for that region/zone or temporarily unavailable.

    Example Scenarios:

    Trying to request a GPU VM in a region where it's restricted.

    Your subscription doesn’t have access to that SKU in the selected region.

    Action to take:

    Try a different region or a different VM SKU.

    Check if your subscription is allowed to use that SKU (can contact Azure support or check via CLI with az vm list-skus).

    DataNotFoundOrStale : means the recommender API doesn’t have fresh or complete data for that VM SKU in the region/zone you queried.

    Data might be outdated or missing due to telemetry gaps.

    No recent spot VM activity to base recommendations on.

    Action to take:

    Wait and retry later.

    Try another zone/region where data is available.

    • Consider using this as a signal to avoid automated placement decisions in this area for now.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.