【发布时间】:2017-05-18 08:36:55
【问题描述】:
由于 WannaCry 漏洞,Microsoft 突然删除了我的 Azure 市场 VM 映像。
我正在尝试在从新修补映像创建的新 VM 上运行用于 Azure 认证的认证测试工具 1.2。
我以本地管理员身份登录并按照the documentation 在 VM 上运行该工具:“认证工具在运行中的 VM 上运行,从您的用户 VM 映像配置,以确保 VM 映像与微软 Azure。”
我尝试在默认的 Classic(不是 Azure 资源管理器)Windows Server 2012 R2 Datacenter 和 Windows Server 2016 Datacenter VM 上运行该工具。
我已尝试关闭 Windows 防火墙和 UAC。
我没有为 VM 尝试过 changing the firewall rules on Azure,因为:“当您在 Azure 经典门户中创建 Windows 虚拟机时,通常会自动为您创建远程桌面和 Windows PowerShell 远程处理等常见端点。”
以下是在全新的 Azure 经典 VM(应用了 WannaCry 补丁)上运行该工具创建的日志:
5/18/2017 6:23:22 AM
Log generated by Certification Test Tool for Azure Certified
Test name: ****** Test Date :5/18/2017 6:23:22 AM Tested on: ******.cloudapp.net Test for: Microsoft Azure Test in: Windows Server
5/18/2017 6:23:24 AM
Test case/Verification: TestConnection
Description: Instantiates connection to the specified VM.
Connection Attempt: 1 Connecting to the Azure VM.... ******.cloudapp.net Error in connecting to the VM. Reason for not connecting to the VM : System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server ******.cloudapp.net failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. at System.Management.Automation.Runspaces.AsyncResult.EndInvoke() at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOpen(IAsyncResult asyncResult) at System.Management.Automation.Runspaces.Internal.RemoteRunspacePoolInternal.Open() at System.Management.Automation.RemoteRunspace.Open() at WindowsAddin.PSConnection.OpenSession() ----------------------------------------------------------------->
编辑:添加几个链接。
【问题讨论】:
-
您是否以管理员身份运行该工具?
-
您可以查看question。
-
是的,我正在以管理员身份运行该工具。我还以本地管理员身份登录。我什至尝试根据该问题的一个答案将我的用户明确添加到 powershell 的权限中。 This question 也类似。但接受的答案仅适用于 Azure 资源管理器 VM,另一个答案建议允许该工具通过防火墙,但我的防火墙已完全关闭。
-
自从我发布这个问题以来,我已经使用 Windows Server 2008 R2 进行了测试,但仍然得到“拒绝访问”。
-
你的 RDP 可以连接到你的虚拟机吗?
标签: windows azure powershell-remoting winrm