powershell - 用于获取虚拟机端口的Azure powershell命令

标签 powershell azure azure-powershell

我正在尝试通过powershell命令获取azure中虚拟机的端口。我们无法获取任何相关命令,因此请向我们建议任何相关的 azure powershell 命令。

最佳答案

您可以使用 Get-AzureEndpoint 来实现:

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

enter image description here

关于powershell - 用于获取虚拟机端口的Azure powershell命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11951413/

相关文章:

azure - 删除/删除通过 powershell 旋转新虚拟机时创建的所有资源

azure - 使用 azure 自动化脚本扩大和缩小 azure 应用服务计划(基于非工作时间)

powershell - 如何使用 PowerShell 输出没有 "#TYPE"行的 CSV?

powershell - 如何在 PowerShell 中将哈希字符串转换为字节数组?

azure - 在流分析中添加以秒为单位的偏移时间

asp.net - 此站点无法提供安全连接 (ERR_SSL_PROTOCOL_ERROR)

powershell - Azure Runbook 错误,AzureRmStorageAccountKey 无法索引到空数组

node.js - Windows PowerShell 不会从 Node.js 控制台记录 Date 对象

powershell - 在列之间添加定界符,并在左侧删除日志文件时间

ios - Azure 通知中心与 APNS