Created
January 2, 2015 15:20
-
-
Save pkirch/9f6951c89d938d897ac1 to your computer and use it in GitHub Desktop.
Get all endpoints in an Azure Subscription - second approach with formatted output.
This file contains 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
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
I use this Gist in my blog post on http://blogs.msdn.com/b/pkirchner/archive/2015/01/02/tipp-powershell-amp-azure-alle-offenen-ports-in-einer-subscription-auflisten.aspx.