目标计算机上的VSTS运行Powershell - 访问被拒绝错误 [英] VSTS Run Powershell on Target Machines - Access is Denied error
问题描述
请帮忙,我真的很挣扎......
当我的部署尝试在Azure VM上运行PowerShell时,我收到错误。 这是错误:
我可以使用相同的凭据从我的PC远程工作到VM:
这是我在团队服务中的发布定义:
正如您从发布任务中看到的那样真的很烦人,在第3个任务中,我使用相同的凭据成功将powershell脚本复制到VM。
您有什么想法我可以解决这个问题吗? 或者我应该尝试不同的方法吗?
干杯
Joe
你好乔,
您是否使用了托管代理?
请参阅本文档中的先决条件以检查您是否遗漏了某些内容:
https://www.visualstudio.com/en-us/docs/ build / steps / deploy / powershell-on-target-machines
Please help, I'm really struggling with this ...
I'm getting error when my deployment tries to run powershell on an Azure VM. This is the error:
I can remote powershell to the VM from my PC at work using the same credentials:
This is my release definition in Team Services:
It's really annoying as as you can see from the release tasks, in the 3rd task I successfully copy a powershell script to the VM using the same credentials.
Have you got any ideas how I can fix this? Or should I try a different approach?
Cheers
Joe
Hi Joe,
Did you use Hosted agents?
Please refer to Prerequisites in this document to check whether you missed something:
https://www.visualstudio.com/en-us/docs/build/steps/deploy/powershell-on-target-machines
这篇关于目标计算机上的VSTS运行Powershell - 访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!