【发布时间】:2019-06-12 20:12:46
【问题描述】:
尝试在 azure devops 管道中运行我们的 terraform 脚本。它调用一个 powershell 脚本,该脚本使用 azure cli 创建一个在 terraform 中本机不可用的资源。但是,我们遇到了不能同时安装 Az 和 AzureRm 模块的错误。
2019-06-07T15:45:48.1553235Z same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can
2019-06-07T15:45:48.1554405Z use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure
2019-06-07T15:45:48.1555064Z Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found
2019-06-07T15:45:48.1555474Z here: https://aka.ms/azps-migration-guide
尝试运行 Uninstall-AzureRm 但找不到该命令。
如何从 VS 2017 托管代理实例中删除 azurerm?
【问题讨论】:
-
如果您使用的是 azure cli,为什么需要 az powershell 模块?
-
那篇文章帮助我们成功卸载了 VS2017 托管代理中的 azurerm。谢谢
标签: azure-devops terraform-provider-azure