-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm can't create LoadBalancer rule with probe #9311
Comments
Update: after creating a probe I've been able to manually get the probe ID and succesfully |
All the output IDs for LB probes, rules and backend pools are just the ID of the LB itself; you can construct the correct ID using e.g. It would be better if the output IDs were set to this, since it can be derived from the information supplied when creating the pool/rule/probe. cf. https://github.com/Azure/azure-quickstart-templates/blob/master/201-2-vms-loadbalancer-lbrules/azuredeploy.json which is where I got this pattern from. cc @stack72 |
- Backend address pools and probes don't output their own id. When hashicorp/terraform#9311 is fixed, we can stop doing this [#132341947] Signed-off-by: Raina Masand <rmasand@pivotal.io>
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I am unable to create resources that refer to LoadBalancer probe_ids or backend_address_pool_ids. I can create load balancers, rules, and NICs that don't refer to a particular probe/backend_address_pool or manually set the string name, but I can't use something like
"${azurerm_lb_probe.web_probe.id}"
Terraform Version
Terraform v0.7.6-dev (d83770d+CHANGES)
Affected Resource(s)
Please list the resources as a list, for example:
Resources using these:
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Expected Behavior
Load balancer rule with the given probe & backend address pool should have been created
Actual Behavior
Azure returned an error stating that the ID for the probe/backend address pool refers to the wrong type:
And doing a
terraform plan
shows that the IDs being used seem to refer to the LoadBalancer itself instead of the ID of the Probe.I'm new to terraform, but it seems like this an issue in this section of code (for probes):
terraform/builtin/providers/azurerm/resource_arm_loadbalancer_probe.go
Lines 123 to 131 in 7d3d707
Steps to Reproduce
terraform apply
Important Factoids
This stuff is super new (and great!)
References
Azure resource manager load balancer support was just added in this pull request:
The text was updated successfully, but these errors were encountered: