【问题标题】:What are the powershell module version dependencies for Terraform azure provider?Terraform azure 提供程序的 powershell 模块版本依赖项是什么?
【发布时间】:2019-11-21 18:35:48
【问题描述】:

当前使用 terraform = 0.11.14 和 azurerm provider = 1.29.0。在哪里可以找到当前 azurerm 提供程序版本所需的 powershell 模块/版本?

例如,Az.Accounts 1.6.0 是否适用于我当前的 azurerm 提供程序,还是我需要旧版本?

Windows 10 Powershell 5.1

【问题讨论】:

  • 不清楚你想做什么?你能提供更多细节吗?地形代码?
  • 在运行 terraform 脚本时收到此警告:“(local-exec): WARNING: The version '1.6.0' of module 'Az.Accounts' 当前正在使用。关闭后重试操作应用程序。”让我想知道各个 powershell 模块的 terraform pre-reqs 是什么。

标签: terraform-provider-azure


【解决方案1】:

我不知道当前 Azure 提供程序版本是否存在所需的 PowerShell 模块/版本。建议使用最新的Azure PowerShell module 版本。如果您对 Azure 提供商的最新功能感兴趣,可以查看changelog 以获取版本信息和发行说明。

对于您评论中的错误,它表明您现有的 PowerShell 会话通过从中加载可能的元素来“锁定”该模块。由于local-exec 提供程序在运行 Terraform 的机器上调用进程,而不是在资源上。当你在 terraform 中运行它时,它实际上是在本地 PowerShell 上运行的。我认为这与 terraform 版本无关。此错误可能是由于您现有的 PowerShell 会话造成的。您可以退出它或打开一个新的 PowerShell 会话。参考this

希望对你有帮助。

【讨论】:

    猜你喜欢
    • 2020-03-17
    • 2021-08-22
    • 2021-03-29
    • 2019-11-17
    • 1970-01-01
    • 2021-01-03
    • 2020-02-05
    • 2018-01-30
    • 1970-01-01
    相关资源
    最近更新 更多