无法远程运行Powershell脚本,导致Azure中的测试代理部署失败 [英] Unable to run powershell script remotely leading to test agent deployment failures in Azure

查看:60
本文介绍了无法远程运行Powershell脚本,导致Azure中的测试代理部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个设置,需要从测试代理运行自动化脚本.但是构建步骤失败并显示以下消息

I am having a setup where I need to run automation script from a test agent. But the build step fails with the following message

connecting to remote server DevBox02 failed with the following error message 
: The client cannot connect to the destination specified in the request. Verify that the 
service on the destination is running and is accepting requests. Consult the logs and 
documentation for the WS-Management service running on the destination, most commonly IIS or
WinRM. If the destination is the WinRM service, run the following command on the 
destination to analyze and configure the WinRM service: "winrm quickconfig". For more 
information, see the about_Remote_Troubleshooting Help topic.'. For troubleshooting

但是当我分析测试代理计算机时,我发现WinRM服务已经在运行

But when I analysed the test agent machine, I am getting the messsage that WinRM service is already running

PS C:\Windows\system32> winrm quickconfig
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.
PS C:\Windows\system32>

当我能够看到WinRM Service已启动并正在运行时,不确定为什么收到此消息

Not sure why I am getting this message when I am able to see WinRM Service is up and running

我还配置了防火墙例外.

I have also configured the firewall exception .

请帮助我指出我所缺少的内容.非常感谢

Please help me in pointing what I am missing. Thanks a lot

推荐答案

WinRM/Remote Powershell服务未正确配置,请尝试按照以下步骤重新配置服务:

WinRM/Remote Powershell service isn't configured correctly, try to reconfigure the service by following the steps here: How to Run PowerShell Commands on Remote Computers.

这篇关于无法远程运行Powershell脚本,导致Azure中的测试代理部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆