Fetching your Azure core count limit for each region using PowerShell (ARM)


With the move to Azure Resource Manager, it looks like the core-count limits are now per-region-per-subscription instead of just per-subscription.  How do you find out what your limits are?

I was asked that question, so threw together this PowerShell script to give us the answer:

Add-AzureRmAccount

$regionlist = (Get-AzureLocation).Name

$limits = foreach ($region in $regionlist) {

Get-AzureRmVmUsage –Location $region | where {$_.Name.LocalizedValue -eq “Total Regional Cores”} | Select @{label="Region";Expression ={$region}}, CurrentValue, Limit

}

$limits | Format-Table -AutoSize

This will return a table showing each region, the currently used core count (CurrentValue) and the corresponding core limits (Limit), like this:

azure core limits by region

azure core limits by region

Comments (0)

Skip to main content