View available regions for Azure services using PowerShell

Quickly check the regions various Azure services are available at.

John Savill

January 29, 2016

1 Min Read
View available regions for Azure services using PowerShell

Q. How can I view the Azure regions using PowerShell AzureRM?

A. I could not find an easy cmdlet to view the regions but instead you can see the regions for certain resource types. Picking virtual machines (which are available in all regions) is an easy way to see all the Azure regions. Below is example code. Note if you wanted to check the regions for a certain type of resource change the virtualMachines to the resource type you want to check for. You can also check via the portal at https://azure.microsoft.com/en-us/regions/#services.

$resources = Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute$resources.ResourceTypes.Where{($_.ResourceTypeName -eq 'virtualMachines')}.LocationsEast USEast US 2West USCentral USSouth Central USNorth EuropeWest EuropeEast AsiaSoutheast AsiaJapan EastJapan WestNorth Central USBrazil South

 

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like