我们将 Azure DevOps 与托管 VS2017 构建代理结合使用。我们想使用新的 Az PowerShell module 。然而,VS2017 hosted build agent上面安装了 AzureRM。该文档指出You should not install Az side-by-side with AzureRM. Remove all AzureRM modules before installing Az.这确实是必要的,因为两者是冲突的。也没有 Az PowerShell 构建任务。
问题是,如何使用 Azure DevOps 托管的 VS2017 构建代理中的 Azure Az PowerShell 模块?
最佳答案
我想答案是 - 你(暂时)不知道。 因为您无权删除 azure powershell 模块。好吧,显然你可以做到。
使其工作的另一种方法是使用 docker 容器作为构建代理(在托管代理内)。显然,可以有 Az 模块。
关于Azure DevOps (VSTS) - 在托管代理上使用 Azure Az PowerShell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54706620/