Advertisement
Guest User

Untitled

a guest
Jul 27th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. $azurelocations = Get-AzureLocation
  2. $out = @()
  3. foreach ($location in $azurelocations)
  4. {
  5. $VMSizes = $location.VirtualMachineRoleSizes
  6. $VMSizesStr = $VMSizes -join ', '
  7. $props = @{
  8. Name = $location.Name
  9. VMSizes = $VMSizesStr}
  10. $out += New-Object PsObject -Property $props
  11. }
  12.  
  13. $out | Format-Table -AutoSize -Wrap Name, VMSizes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement