Terraform v0.11.10
provider "azurerm" {
subscription_id = "..."
client_id = "..."
client_secret = "..."
tenant_id = "..."
}
resource "azurerm_resource_group" "myterraformgroup" {
name = "myResourceGroup"
location = "eastus"
tags {
environment = "Terraform Demo"
}
}
https://gist.github.com/LarsLarsLars/d2799cb2761c8a9452c66cd3912b552f
terraform plan should generate a preview of the changes to apply
Error: Error asking for user input: 1 error(s) occurred:
terraform initterraform planhi @LarsLarsLars
Thanks for opening this issue :)
Terraform (Core) and it's Providers run in separate processes that communicate via RPC - as such both processes require permission to bind ports. Taking a look into the error you're seeing:
2018-11-28T14:22:30.399-0500 [ERROR] plugin.terraform-provider-azurerm_v1.19.0_x4.exe: plugin init error: timestamp=2018-11-28T14:22:30.374-0500 error="Couldn't bind plugin TCP listener"
It appears that whilst Terraform can open/bind a port - the AzureRM plugin can't, as such Terraform's unable to interact with the AzureRM plugin which is why you're seeing this error.
Out of interest are you running in a locked-down environment where binaries need to be approved prior to running? If so, the AzureRM provider will also need to be added to this list.
Thanks!
Thanks for your fast answer Tom!
Allowing the AzureRM plugin ( ...\plugins\windows_amd64\terraform-provider-azurerm_v1.19.0_x4.exe) in the firewall solved it.
Glad to hear this is now working for you @LarsLarsLars :)
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!