Azure Powershell 代理任务管道

Azure Powershell agent task pipeline

我只是想知道 Azure Powershell VSO agent task 下的链是什么。我认为这不是简单的 powershell 主机,因为它不适用于某些命令行开关(例如 Get-Module -ListAvailable)并且失败并显示错误:

The term 'Get-ServiceEndpoint' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

A Connected Service with name 'xxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxx' could not be found. Ensure that this Connected Service was successfully provisioned using services tab in Admin UI.

VSTS 构建任务是普通的 powershell 脚本。但是 'Get-ServiceEndpoint' 是一个已知问题:issue.

据我所知,其他 cmdlet 工作正常。我已经能够毫无问题地编写多个构建任务。