新安装的vsts-agent上没有AzurePS系统功能 [英] AzurePS System capability is not available on a newly installed vsts-agent

查看:135
本文介绍了新安装的vsts-agent上没有AzurePS系统功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在新的Azure VM-Windows Server 2012 R2(64位)上成功安装了新的VSTS代理.当我尝试在新的vsts代理上执行任何包含azure powershell任务的管道时,我收到一条错误消息:-

I have successfully installed a new VSTS agent on a new Azure VM - Windows Server 2012 R2 (64bit). When I am try to execute any pipelines containing azure powershell tasks on the new vsts agent, I get an error message :-

错误消息在满足指定要求的BuildAgent2池中未找到代理:azureps Agent.Version -gtVersion 2.119.1"

Error message 'No agent found in pool BuildAgent2 which satisfies the specified demands:azureps Agent.Version -gtVersion 2.119.1'

是否可以将AzurePS添加为系统功能? 请告知执行此操作的步骤-谢谢.

Is there any way to add AzurePS as a system capability ? Please advise on the steps to do this - thanks.

推荐答案

AzurePS系统功能在新安装的vsts-agent上不可用

AzurePS System capability is not available on a newly installed vsts-agent

同意jessehouwing.

Agree with jessehouwing.

如果要启用AzurePS系统功能,可以在Windows上安装PowerShell 5.1或更高版本,或者在所有平台上安装PowerShell Core 6.x及更高版本,然后在Azure VM上安装/更新Azure PowerShell模块:

If you want to enable AzurePS System capability, you could install the PowerShell 5.1 or higher on Windows, or PowerShell Core 6.x and later on all platforms, then install/update the Azure PowerShell module on the Azure VM:

安装Azure PowerShell模块

但是您得到的错误应该与您在构建的选项选项卡上设置的要求更相关:

But the error you got should more related to the demands you set on the option tab of your build :

检查已安装的代理版本,确保设置了正确的版本,或者可以尝试删除该要求以检查是否仍然存在此问题.

Check the agent version you have installed, make sure you set the correct version, or you can try to remove that demands to check if you still have this issue.

希望这会有所帮助.

这篇关于新安装的vsts-agent上没有AzurePS系统功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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