Required Permissions for Azure CLI Spot-Placement-Recommender API Execution

KMU 20 Reputation points
2024-04-18T06:07:35.7933333+00:00

I'm trying to use the Azure CLI to retrieve the spot-placement-recommender based on the information in the following link: https://learn.microsoft.com/en-us/cli/azure/compute-diagnostic/spot-placement-recommender?view=azure-cli-latest

However, the API did not execute and returned a SubscriptionForbidden error. I would like to know what permissions are required on the subscription for this operation
Screenshot 2024-04-18 at 15.04.31

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,144 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 23,491 Reputation points Microsoft Employee
    2024-04-18T15:58:37.3666667+00:00

    Hello, @KMU !

    What should I do when I get an Access to this API is Forbidden for Subscription / SubscriptionForbidden error?

    If this was a 403 error, I would recommend looking at permissions, API key, authentication, or throttling issues. That doesn't appear to be the case, however, and in this case we need to take a closer look at your resources. Please email the following to AzCommunity@microsoft.com and we'll get back to you promptly:

    • Subject: "Attn: kobulloc - Additional support required"
    • Email body: Your Subscription ID
    • Email body: A link to this thread so we can validate and expedite the request

    If you don't receive a response within 24 hours, please reply to the thread so we can investigate.


    I hope this has been helpful! If you still have questions, please let us know what is needed in the comments so the question can be answered.

    We appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

0 additional answers

Sort by: Most helpful