-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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_lb always recreates load balancer resources when adding a new frontend_ip_configuration #13017
Comments
Interestingly (I first had this in 2.64), the deprecated 'zones' attribute is also marked as destructive: commenting out 'availability zones' to let it revet to the default ("Zone-Redundant") causes 'availability zone' to no longer destroy the object but the 'zones' still causes a destruction. |
getting the same on this version
Adding the new frontend IP configuration wants to re-create the load balancer itself - no matter the availability_zone setting
this seems to be introduced in 2.64.0 as @kjanss said with #12208 This is preventing us from any new changes on the LB as we cannot update our balancers... |
Fix is on the way. Tests so far look good. |
This functionality has been released in v2.77.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
terraform -v
Terraform v0.15.5
on darwin_amd64
Affected Resource(s)
azurerm_lb
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
I create a lb with a frontend
I apply
I add a second frontend listener
I apply
the listener gets added
Actual Behaviour
I create a lb with a frontend
I apply
I add a second frontend listener
I apply
all objects within the load balancer (probes, frontends, backend pools, rules) and the load balancer itself get re-created.
Reason listed:
+ frontend_ip_configuration {
+ availability_zone = "Zone-Redundant" # forces replacement
+ id = (known after apply)
+ inbound_nat_rules = (known after apply)
+ load_balancer_rules = (known after apply)
+ name = "FrontEnd2"
this causes the lb id to change, which causes everything else to get re-created.
workaround: create the listener manually, then apply the terraform script.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: