Azure DevOps (VSTS) - 在托管代理上使用 Azure Az PowerShell

标签 azure powershell azure-devops azure-cli az

我们将 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/

相关文章:

azure - 支出限制 Azure 资源组

string - PowerShell: “… ${_.Name} …”有什么问题?

azure - 如何通过 Azure 数据工厂连接到 AutoSys

svn - 使用 powershell 从命令行输出中提取特定值

powershell - Windows Powershell 中的 Flutter Doctor 返回错误

visual-studio - Nuget 包 - feed (VSTS) :Exception 'System.AggregateException' thrown when trying to add source

azure-devops - 在 VSTS 中如何锁定 master 分支,以便没有人可以提交,但可以合并来自其他分支的拉取请求?

c# - Azure WebJobs SDK 如何允许将特定参数列表注入(inject)到 Function 方法中?

azure - 处理 AzureMobile Apps 中的请求时出错 HTTP2 错误

c# - 无法在 C# 和 Graph Explorer 中从 Sharepoint Graph 获取云端硬盘项目和云端硬盘文件夹