We have an Azure account with a lot of VMs. I need a script that can list all powered on machines that has endpoints - and list the endpoints + ACL.
We're trying to track down servers with open SSH endpoints without having to do it manually. The script that I tried to work didn't work.
Get-AzureVM | where {$_.Status -ne "ReadyRole"} | Get-AzureEndpoint | select LocalPort, Port, Protocol, Vip, Acl, VirtualIPName
Thank you!
you need to step through each VM's endpoint: