无法通过 powershell 在 Azure VM 连接中建立 SSL 连接错误

SSL Connection cannot be established error in Azure VM Connection via powershell

从 09-01-2015(昨天)开始,使用 Get-AzureCertificate 命令安装证书并从本地计算机在远程 azure vm 中执行命令无法从本地计算机执行命令。连接到 azure 虚拟机时收到以下错误消息。

[xxxxxx.cloudapp.net] Connecting to remote server xxxxxx.cloudapp.net failed with thefollowing error message : The SSL connection cannot be established. Verify that the service on the remote host isproperly configured to listen for HTTPS requests. Consult the logs and documentation for the WS-Management servicerunning on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the followingcommand on the destination to analyze and configure the WinRM service: "winrm quickconfig -transport:https". For moreinformation, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (xxxxxx.cloudapp.net:String) [], PSRemotingTransportException + FullyQualifiedErrorId : -2144108102,PSSessionStateBroken

Microsoft 在 8 月 24 日对标准映像进行了更改,导致带有自签名证书的 WinRM SSL 连接中断。

如果您将 7 月 26 日的图像用于 Server 2012 R2,它将起作用。图片名称是:

a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-20150726-en.us-127GB.vhd

Mike 建议的补充:

7 月的图片不适合我。但是有了 6 月的图像,我可以通过 https 使用 winrm。

我在西欧创建服务器。因此,也许您所在的地区也会影响您获得的图像。