0

Currently using terraform = 0.11.14 and azurerm provider = 1.29.0. Where can I find the required powershell modules / versions for my current azurerm provider version?

For example is Az.Accounts 1.6.0 ok for my current azurerm provider or do I need an older version?

Windows 10 Powershell 5.1

user2368632
  • 990
  • 1
  • 12
  • 33
  • Not clearly what do you want to do? Can you provide more details? the terraform code? – Charles Xu Jul 12 '19 at 03:12
  • 1
    Getting this warning while running terraform script: "(local-exec): WARNING: The version '1.6.0' of module 'Az.Accounts' is currently in use. Retry the operation after closing the applications." Caused me to wonder what the terraform pre-reqs are for individual powershell modules. – user2368632 Jul 12 '19 at 03:43

1 Answers1

1

I am not aware that there is the required PowerShell modules/versions for the current Azure provider version. It's recommended to use the latest Azure PowerShell module version. If you're interested in the Azure provider's latest features, you could check out the changelog for version information and release notes.

For the error in your comment, it indicated that your existing PowerShell session is "locking" the module by loading possible elements from it. Since local-exec provider invokes a process on the machine running Terraform, not on the resource. When you run it in terraform, it actually runs on local PowerShell. I don't think it will be related to the terraform version. This error might be due to your existing PowerShell session. You could exit it or open a new PowerShell session. Refer to this.

Hope it helps.

Community
  • 1
  • 1
Nancy
  • 26,865
  • 3
  • 18
  • 34