Deploy Test agent failing in VSTS due to WinRM issue

安稳与你 提交于 2019-12-11 01:22:26

问题


I'm attempting to run a build definition that will ultimately run functional tests on an azure machine, however the build falls over on the deploy test agent step with the following error....

Error occurred on 'seleniumvm.ukwest.cloudapp.azure.com:5986'. Details : 'Connecting to remote server seleniumvm.ukwest.cloudapp.azure.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.'. For troubleshooting, refer https://aka.ms/remotevstest.

Full build log can be found here

This is what my build looks like...

I was under the assumption the Azure Resource Group Deployment task would configure WinRM on my Azure VM. I have that task set to Configure with WinRM. This task passes when running the build.

My deploy test agent task details are as follows....

  • Machines: seleniumvm.ukwest.cloudapp.azure.com:5986

  • Admin Login: SeleniumVM\[username]

  • Admin Password: [password]

  • Protocol: HTTPS

  • Test Certicate: Ticked
  • Agent configuration username and password is the same as above

I have ran winrm quickconfig and Enable-PSRemoting Force, both returning message that WinRM is already setup.

Please can someone help me?


回答1:


I experienced this same issue setting up a build machine for VSTS, fix for me was Method 2 here: https://support.microsoft.com/en-us/help/896861/you-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate

which is to add the following registry key:
In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1, and then click OK.

Restart the VM



来源:https://stackoverflow.com/questions/47468342/deploy-test-agent-failing-in-vsts-due-to-winrm-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!