【问题标题】:Get Specific PublicPort Endpoint in Azure在 Azure 中获取特定的 PublicPort 终结点
【发布时间】:2015-09-11 19:18:54
【问题描述】:

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

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

获取-AzureVM -ServiceName |获取 AzureEndpoint |格式表-AutoSize

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

【问题讨论】:

    标签: powershell azure cloud endpoints


    【解决方案1】:

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

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

    【讨论】:

    • 感谢它现在对我有用 :-) !!!你知道我如何从 Get-AzureEndpoint 获取 VM 名称,因为我在同一个云服务上的服务器很少,而且我不知道谁使用这个端口?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-11
    • 1970-01-01
    • 1970-01-01
    • 2021-01-20
    • 1970-01-01
    相关资源
    最近更新 更多