I am trying to get the port of a vm in azure through powershell command. We are not able to get any command for that, so please suggest us any azure powershell commands for it.

有帮助吗?

解决方案

You can use Get-AzureEndpoint for that:

Get-AzureVM -ServiceName "MyTestVM1" -Name "MyTestVM2" | Get-AzureEndpoint

enter image description here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top