|
| 1 | +--- |
| 2 | +title: vCPU quotas |
| 3 | +description: Check your vCPU quotas for Azure virtual-machines. |
| 4 | +author: cynthn |
| 5 | +ms.service: virtual-machines |
| 6 | +ms.subservice: sizes |
| 7 | +ms.workload: infrastructure-services |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 02/15/2023 |
| 10 | +ms.author: cynthn |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +# Check vCPU quotas |
| 15 | + |
| 16 | +**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets |
| 17 | + |
| 18 | +The vCPU quotas for virtual machines and scale sets are arranged in two tiers for each subscription, in each region. The first tier is the Total Regional vCPUs, and the second tier is the various VM size family cores such as the D-series vCPUs. Anytime a new VM is deployed the vCPUs for the VM must not exceed the vCPU quota for the VM size family or the total regional vCPU quota. If you exceed either of those quotas, the VM deployment won't be allowed. There is also a quota for the overall number of virtual machines in the region. The details on each of these quotas can be seen in the **Usage + quotas** section of the **Subscription** page in the [Azure portal](https://portal.azure.com), or you can query for the values using the Azure CLI. |
| 19 | + |
| 20 | +> [!NOTE] |
| 21 | +> Quota is calculated based on the total number of cores in use both allocated and deallocated. If you need additional cores, [request a quota increase](../azure-portal/supportability/regional-quota-requests.md) or delete VMs that are no longer needed. |
| 22 | +
|
| 23 | + |
| 24 | +## Check usage |
| 25 | + |
| 26 | + |
| 27 | +### [CLI](#tab/cli) |
| 28 | + |
| 29 | +You can check your quota usage using [az vm list-usage](/cli/azure/vm). |
| 30 | + |
| 31 | +```azurecli-interactive |
| 32 | +az vm list-usage --location "East US" -o table |
| 33 | +``` |
| 34 | + |
| 35 | +The output should look something like this: |
| 36 | + |
| 37 | + |
| 38 | +``` |
| 39 | +Name CurrentValue Limit |
| 40 | +-------------------------------- -------------- ------- |
| 41 | +Availability Sets 0 2000 |
| 42 | +Total Regional vCPUs 29 100 |
| 43 | +Virtual Machines 7 10000 |
| 44 | +Virtual Machine Scale Sets 0 2000 |
| 45 | +Standard DSv3 Family vCPUs 8 100 |
| 46 | +Standard DSv2 Family vCPUs 3 100 |
| 47 | +Standard Dv3 Family vCPUs 2 100 |
| 48 | +Standard D Family vCPUs 8 100 |
| 49 | +Standard Dv2 Family vCPUs 8 100 |
| 50 | +Basic A Family vCPUs 0 100 |
| 51 | +Standard A0-A7 Family vCPUs 0 100 |
| 52 | +Standard A8-A11 Family vCPUs 0 100 |
| 53 | +Standard DS Family vCPUs 0 100 |
| 54 | +Standard G Family vCPUs 0 100 |
| 55 | +Standard GS Family vCPUs 0 100 |
| 56 | +Standard F Family vCPUs 0 100 |
| 57 | +Standard FS Family vCPUs 0 100 |
| 58 | +Standard Storage Managed Disks 5 10000 |
| 59 | +Premium Storage Managed Disks 5 10000 |
| 60 | +... |
| 61 | +``` |
| 62 | + |
| 63 | +### [PowerShell](#tab/powershell) |
| 64 | + |
| 65 | +You can use the [Get-AzVMUsage](/powershell/module/az.compute/get-azvmusage) cmdlet to check on your quota usage. |
| 66 | + |
| 67 | +```azurepowershell-interactive |
| 68 | +Get-AzVMUsage -Location "East US" |
| 69 | +``` |
| 70 | + |
| 71 | +The output looks similar to this: |
| 72 | + |
| 73 | +``` |
| 74 | +Name Current Value Limit Unit |
| 75 | +---- ------------- ----- ---- |
| 76 | +Availability Sets 0 2000 Count |
| 77 | +Total Regional vCPUs 4 260 Count |
| 78 | +Virtual Machines 4 10000 Count |
| 79 | +Virtual Machine Scale Sets 1 2000 Count |
| 80 | +Standard B Family vCPUs 1 10 Count |
| 81 | +Standard DSv2 Family vCPUs 1 100 Count |
| 82 | +Standard Dv2 Family vCPUs 2 100 Count |
| 83 | +Basic A Family vCPUs 0 100 Count |
| 84 | +Standard A0-A7 Family vCPUs 0 250 Count |
| 85 | +Standard A8-A11 Family vCPUs 0 100 Count |
| 86 | +Standard D Family vCPUs 0 100 Count |
| 87 | +Standard G Family vCPUs 0 100 Count |
| 88 | +Standard DS Family vCPUs 0 100 Count |
| 89 | +Standard GS Family vCPUs 0 100 Count |
| 90 | +Standard F Family vCPUs 0 100 Count |
| 91 | +Standard FS Family vCPUs 0 100 Count |
| 92 | +Standard NV Family vCPUs 0 24 Count |
| 93 | +Standard NC Family vCPUs 0 48 Count |
| 94 | +Standard H Family vCPUs 0 8 Count |
| 95 | +Standard Av2 Family vCPUs 0 100 Count |
| 96 | +Standard LS Family vCPUs 0 100 Count |
| 97 | +Standard Dv2 Promo Family vCPUs 0 100 Count |
| 98 | +Standard DSv2 Promo Family vCPUs 0 100 Count |
| 99 | +Standard MS Family vCPUs 0 0 Count |
| 100 | +Standard Dv3 Family vCPUs 0 100 Count |
| 101 | +Standard DSv3 Family vCPUs 0 100 Count |
| 102 | +Standard Ev3 Family vCPUs 0 100 Count |
| 103 | +Standard ESv3 Family vCPUs 0 100 Count |
| 104 | +Standard FSv2 Family vCPUs 0 100 Count |
| 105 | +Standard ND Family vCPUs 0 0 Count |
| 106 | +Standard NCv2 Family vCPUs 0 0 Count |
| 107 | +Standard NCv3 Family vCPUs 0 0 Count |
| 108 | +Standard LSv2 Family vCPUs 0 0 Count |
| 109 | +Standard Storage Managed Disks 2 10000 Count |
| 110 | +Premium Storage Managed Disks 1 10000 Count |
| 111 | +... |
| 112 | +``` |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +## Reserved VM Instances |
| 117 | +Reserved VM Instances, scoped to a single subscription without VM size flexibility, will add a new aspect to the vCPU quotas. These values describe the number of instances of the stated size that must be deployable in the subscription. They work as a placeholder in the quota system to ensure that quota is reserved to ensure Azure reservations are deployable in the subscription. For example, if a specific subscription has 10 Standard_D1 reservations the usages limit for Standard_D1 reservations will be 10. Azure will ensure that there are always at least 10 vCPUs available in the Total Regional vCPUs quota to be used for Standard_D1 instances and there are at least 10 vCPUs available in the Standard D Family vCPU quota to be used for Standard_D1 instances. |
| 118 | + |
| 119 | +If a quota increase is required to either purchase a Single Subscription RI, you can [request a quota increase](../azure-portal/supportability/regional-quota-requests.md) on your subscription. |
| 120 | + |
| 121 | +## Next steps |
| 122 | + |
| 123 | +For more information about billing and quotas, see [Azure subscription and service limits, quotas, and constraints](../azure-resource-manager/management/azure-subscription-service-limits.md?toc=/azure/billing/TOC.json). |
0 commit comments