Install-Module -Name ImportExcel -Scope CurrentUser -Force
if ($_.RegionType -eq 'Physical') {
$regionName = $_.RegionName
$id = $_.ID
(Get-AzLocation -OutVariable locations) | | |
Where-Object { $_.GeographyGroup -and $_.RegionType -eq 'Physical' } | | |
Select-Object -Property @{Name='Geography';Expression={$_.GeographyGroup}}, | |
@{Name='Region';Expression={$_.Location}}, | |
PhysicalLocation, | |
@{Name='PairedRegion';Expression={$_.PairedRegion.Name}}, | |
@{Name='PairedRegionPhysicalLocation';Expression={ | |
($locations | Where-Object location -eq $_.PairedRegion.Name).PhysicalLocation | |
}} | | |
Sort-Object Geography, Region | |