Created
July 8, 2015 00:02
-
-
Save digitaldrummerj/be3eb227be0330867b18 to your computer and use it in GitHub Desktop.
Azure Powershell SDK Script to Get Possible VM Sizes by Location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$azurelocations = Get-AzureLocation | |
$out = @() | |
foreach ($location in $azurelocations) | |
{ | |
$VMSizes = $location.VirtualMachineRoleSizes | |
$VMSizesStr = $VMSizes -join ', ' | |
$props = @{ | |
Name = $location.Name | |
VMSizes = $VMSizesStr} | |
$out += New-Object PsObject -Property $props | |
} | |
$out | Format-Table -AutoSize -Wrap Name, VMSizes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment