Azure / terraform-azurerm-vmss-cloudinit

Terraform AzureRM module registry to create a VM Scaleset initialized via cloud-init scripts
https://registry.terraform.io/modules/Azure/vmss-cloudinit/azurerm/
MIT License
22 stars 34 forks source link

Can not parse frontend_ip_configuration.0.subnet_id as a resource id #3

Open akomlik opened 6 years ago

akomlik commented 6 years ago

Trying to run terraform against your own example and getting an error: $ terraform init -v Terraform v0.11.7 + provider.azurerm v1.9.0 + provider.template v1.0.0

$ terraform plan Error: module.loadbalancer.azurerm_lb.azlb: Can not parse "frontend_ip_configuration.0.subnet_id" as a resource id: Cannot parse Azure ID: parse : empty url

This used to work month ago. Has there been Azure API change that broke it?

johnwhumphreys commented 5 years ago

Having a similar issue ; it's not accepting my sub-net ID. though mine says "invalid URI for request.".

akomlik commented 5 years ago

I ended up making my own module based on this since I needed to support multiple AZ's, added boot diagnostics to see console output, extended linux monitoring to see file sytem space, memory, etc.

you can find it on github

johnwhumphreys commented 5 years ago

Oh cool, I'll check it out. My issue was more of a face-palm though. It turned out that I was trying to use an existing sub-net so I actually had to use a data source to query the existing one's ID (which is a URL) rather than just give the name. Just started with Terraform yesterday, so still learning.

Thanks so much for the info & link.