Skip to content

Instantly share code, notes, and snippets.

@digitaldrummerj
Created July 8, 2015 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitaldrummerj/be3eb227be0330867b18 to your computer and use it in GitHub Desktop.
Save digitaldrummerj/be3eb227be0330867b18 to your computer and use it in GitHub Desktop.
Azure Powershell SDK Script to Get Possible VM Sizes by Location
$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