本文介绍了由于WinRM问题,导致VSTS中的部署测试代理失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行一个构建定义,该定义最终将在azure机器上运行功能测试,但是该构建落入了部署测试代理步骤,并出现以下错误....

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

'seleniumvm.ukwest.cloudapp.azure.com:5986'发生错误.详细信息:'连接到远程服务器seleniumvm.ukwest.cloudapp.azure.com失败,并显示以下错误消息:访问被拒绝.有关更多信息,请参见about_Remote_Troubleshooting帮助主题.有关故障排除,请参考 https://aka.ms/remotevstest .

可以在此处

这就是我的构建...

This is what my build looks like...

我假设 Azure资源组部署任务将在我的Azure VM上配置WinRM.我已将该任务设置为使用WinRM配置.运行构建时,此任务通过.

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

  • 机器: seleniumvm.ukwest.cloudapp.azure.com:5986

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

管理员登录名: SeleniumVM \ [用户名]

Admin Login: SeleniumVM\[username]

管理员密码: [密码]

协议: HTTPS

我已经运行了winrm quickconfigEnable-PSRemoting Force,都返回了已安装WinRM的消息.

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

请有人可以帮助我吗?

推荐答案

我在为VSTS设置构建机器时遇到了同样的问题,这里的方法2是为我解决的问题: https://support.microsoft.com/zh-cn/help/896861/you-receive-error-401-1-when-you-browse-a-web-site-that-使用-整合

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

这将添加以下注册表项:
在注册表编辑器中,找到并单击下面的注册表项: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Lsa
右键单击 Lsa ,指向 New ,然后单击 DWORD 值.
键入 DisableLoopbackCheck ,然后按Enter.
右键单击 DisableLoopbackCheck ,然后单击修改.
数据框中,键入 1 ,然后单击确定".

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.

重启虚拟机

这篇关于由于WinRM问题,导致VSTS中的部署测试代理失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-23 04:13