May 23rd, 2015

PowerTip: Identify Regions in Azure

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to get a current list of regions in Azure.

Hey, Scripting Guy! Question How can I use Windows PowerShell to show me a list of the regions in Microsoft Azure?

Hey, Scripting Guy! Answer Use the Get-AzureLocation cmdlet to output the list to your screen, then you can filter with
           the DisplayName parameter. This example lists all of the U.S. regions:

Get-AzureLocation | Where { $_.Displayname –match 'US' } | Format-Table

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.