Unable to create Virtual Machine i am getting error like size is not available in location

Sai Bharath 10 Reputation points
2024-02-21T12:04:32.25+00:00

I am unable to create windows virtual machine, i am getting error like The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D2s_v3' is currently not available in location 'eastus'. Please try another size or deploy to a different location or different zone. I tried with different locations, zones and sizes but i am getting this error.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,041 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,842 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2024-02-21T14:21:33.1066667+00:00

    Hello, @Sai Bharath !

    Why am I getting a capacity restriction error when deploying a VM?

    Usually when you receive a SKU not available or capacity restriction error, it's because the VM size isn't available for the location or zone that you have chosen. You can also run into this if you are trying to deploy an Azure Spot VM or Spot scale set instance and there isn't capacity for Azure Spot in that location.

    You can confirm SKU availability in a location or zone with az vm list-skus:

    az vm list-skus --location centralus --size Standard_D --all --output table

    If a SKU isn't available for your subscription in the location or zone that you need, you can submit a SKU request to Azure Support.

    In this case, Standard_D2s_v3 is a popular VM size that is available in East US so I suspect that this is either due to attempting an Azure Spot VM deployment or a restriction on the subscription.

    You can contrast the list with sizes that are not available under your current subscription by dropping the --all like this:

    az vm list-skus --location centralus --size Standard_D --output table

    Additional reading:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A! User's image

    1 person found this answer helpful.
    0 comments No comments

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.