Steve Veyon
Jul 22, 2025, 3:57 PM CDT
Use the following script to check quotas for any restrictions applied:
$region = eastus2
$all_vmSkus = Get-AzComputeResourceSku -Location $region | ?{$_.ResourceType -eq "virtualMachines"}
$myVM = $all_vmSkus | ?{$_.Name -like *D16as_v6*}
you will want to change the SKU in the third line to match the one you want to know about. Remember, capacity/restrictions are all about inventory at a point in time, whereas quota is the maximum amount of that inventory that you could conceivably consume – desired consumption against quota could exceed available inventory.
The quota is what we viewed in the portal; you can also query quota using the Get-AzVMUsage cmdlet:
vCPU quotas - Azure Virtual Machines | Microsoft Learn
Comments (1 comment)