Skip to content

Get-Location

Azure: Gets Azure locations

param()

try {
	Import-Module Az.Resources -ErrorAction Stop
	$locations = Get-AzLocation -ErrorAction Stop | Select-Object Location, DisplayName, RegionalDisplayName
	Write-Output $locations
} catch {
	Write-Error $_
	exit 1
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.