Deploy Test agent failing in VSTS due to WinRM iss

2019-07-15 05:35发布

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...

enter image description here

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条回答
Ridiculous、
2楼-- · 2019-07-15 06:01

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

查看更多
登录 后发表回答