2017-05-18 33 views
-1

由於WannaCry漏洞,我的Azure marketplace VM映像突然被Microsoft刪除。針對Azure認證「訪問被拒絕」的認證測試工具1.2

我正在嘗試運行Azure認證的認證測試工具1.2,使用新的修補映像創建新VM。

我以本地管理員身份登錄,並按照the documentation在VM上運行此工具:「驗證工具在運行的VM上運行,從您的用戶VM鏡像調配,以確保VM鏡像與Microsoft兼容Azure的「。

我試過在默認的Classic(不是Azure資源管理器)Windows Server 2012 R2 Datacenter和Windows Server 2016 Datacenter VMs上運行該工具。

我試過把Windows防火牆和UAC關掉。

我還沒有試過changing the firewall rules on Azure的VM,因爲:「當您在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() -----------------------------------------------------------------> 

編輯:添加幾個鏈接。

+0

您是否以管理員身份運行該工具? –

+0

你可以檢查這個[問題](http://stackoverflow.com/questions/22680211/access-denied-on-remote-winrm)。 –

+0

是的,我以管理員身份運行該工具。我也以本地管理員身份登錄。我甚至試圖按照該問題的一個答案顯式地將我的用戶添加到powershell的權限。 [這個問題](http://stackoverflow.com/questions/36061088/unable-to-connect-to-vm-with-azure-certified-test-tool-1-2?rq=1)也是類似的。但是接受的答案只適用於Azure資源管理器虛擬機,而另一個答案則建議允許該工具通過防火牆,但我的防火牆已完全關閉。 – SalamiArmy

回答

0

我設法連接並運行該工具,訣竅是不在機器上運行它。您必須從遠程機器運行它。該工具拒絕訪問自己。