在 Azure 中获取特定的公共端口端点

Get Specific PublicPort Endpoint in Azure

我不知道如何使用 Microsoft Azure Cloud 中的 PublicPort 80 端点筛选器获取特定 VM 的名称和详细信息

这是我在 Google 中找到的壁橱命令,但缺少过滤部分。

Get-AzureVM -ServiceName |获取 AzureEndpoint |格式-Table -AutoSize

谢谢 祝你有美好的一天:-)

这是基本的 powershell。使用 Where-Object (https://technet.microsoft.com/en-us/library/ee177028.aspx)。

即获取 AzureEndpoint | Where-Object {$_.PublicPort -eq 80}