The results of the Azure Spot Placement Recommender API are all "DataNotFoundOrStale"

김태양 40 Reputation points
2025-02-24T02:01:26.8766667+00:00

From 2025/2/16

The results of the Azure Spot Placement Recommender API are all "DataNotFoundOrStale"

Could you please confirm?

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

Accepted answer
  1. Suresh Estharakula 400 Reputation points Microsoft External Staff
    2025-02-24T13:29:16.2133333+00:00

    Hi 김태양,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    We understand from your query that you are experiencing an issue while requesting the data/ you got "DataNotFoundOrStale" Status.

    Based on received error "DataNotFoundOrStale" response, that means the data you requested is outdated or unavailable.

    Retry after some time to see if the data has been updated.

    • The Azure Spot Placement Recommender API results typically represent Availability Zone values 1, 2, and 3, with each value corresponding to a distinct availability zone within the region.
    • It provides recommendations on the best regions and VM types for Spot instances based on the availability zones and pricing.
    • Spot VM availability can change frequently, it's recommended to periodically use the API to monitor.
    • To get recommendations, call Spot Placement Recommender API.
        GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/spotPlacement/recommendations?api-version=2023-01-01
        
        POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender/generate?api-version=2025-02-01-preview
      

    For more information, please refer to the below documentation:

    https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/spot-placement-score?tabs=rest-api

    https://learn.microsoft.com/en-us/rest/api/compute/spot-placement-recommender/get?view=rest-compute-2025-02-01-preview&tabs=HTTP#code-try-0

    If the information is helpful, please consider by clicking the "Accept answer and Upvote".

    If you have any further queries, please let us know in the comment. We are glad to help you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 김태양 40 Reputation points
    2025-02-24T02:03:12.47+00:00

    IgnoreIgnoreIgnore


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.