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:
- Resolve errors for SKU not available
- az vm list-skus
- Increase VM-family vCPU quotas
- Increase regional vCPU quotas
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!