Visible Capacity of VM series in each region and zone

Mares Martin 36 Reputation points
2022-05-20T07:53:46.987+00:00

Hello,

is there an option to see the used and free capacity of every VM size or series in each region and zone to avoid allocation fails?

thank you

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

2 answers

Sort by: Most helpful
  1. Mares Martin 36 Reputation points
    2022-05-24T10:49:02.963+00:00

    hello @Anonymous ,

    I don't mean the Quota limits but the used and free capacity of an Azure region. Because I had too often the issue that a VM could not start (allocation failed) despite of available quota.

    thank you

    4 people found this answer helpful.

  2. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2022-05-20T14:13:46.523+00:00

    Hello, @Mares Martin !

    How do I see what amount of my virtual machine quota I've used?
    In addition to the portal, you can use Azure CLI or PowerShell to check your current quota usage and availability.

    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quotas
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quotas

    Azure CLI
    List VM usage for a region:

    az vm list-usage --location "East US" -o table  
    

    204136-image.png

    Azure PowerShell
    List VM usage for a region:

    Get-AzVMUsage -Location "East US"  
    

    204160-image.png

    How do I see what VM size is available prior to deployment?
    The NotAvailableForSubscription error indicates that there is no availability in the subscription for that VM size (see the sticky for more information). The documentation has been updated to provide solutions using Azure CLI, PowerShell, and REST (and of course you can always check the portal as well). When viewing the results, look for NotAvailableForSubscription in the Restriction column.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-sku-not-available

    Azure CLI
    List specific SKUs for a region (D in this example):

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

    List all SKUs for a region:

    az vm list-skus --location centralus --zone --all --output table  
    

    204060-image.png

    PowerShell
    List all SKUs for a region:

    Get-AzComputeResourceSku | Where-Object { $_.Locations -contains "centralus" }  
    

    Similarly, you can use this which formats a bit better by default for me:

    Get-AzComputeResourceSku "centralus";  
    

    204088-image.png

    3 people 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.