Skip to content

Instantly share code, notes, and snippets.

@pkirch
Created January 2, 2015 15:20
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 pkirch/9f6951c89d938d897ac1 to your computer and use it in GitHub Desktop.
Save pkirch/9f6951c89d938d897ac1 to your computer and use it in GitHub Desktop.
Get all endpoints in an Azure Subscription - second approach with formatted output.
Get-AzureVM | Get-AzureEndpoint | Select-Object -Property Vip, Name, Port, LocalPort | Format-Table -AutoSize
<# Output
Vip Name Port LocalPort
--- ---- ---- ---------
104.40.188.19 PowerShell 5986 5986
104.40.188.19 Remote Desktop 56595 3389
191.233.81.126 PowerShell 5986 5986
191.233.81.126 Remote Desktop 61942 3389
137.117.194.91 PowerShell 5986 5986
137.117.194.91 Remote Desktop 63809 3389
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment