Open MinsonTFW opened 3 years ago
Hi I have noticed same issue, let us know if it is a bug or the issue on user end itself.
I also have a similar issue which causes the entire LB to be replaced despite zero configuration change.
Also having the same issue
I am able to reproduce the issue with hashicorp/azurerm=2.46.0. Luckily it can be muted by ignore_changes lifecycle feature
I am also having the same issue.
Same issue here
I am also having this issue.
1mcreating/updating Load Balancer Backend Address Pool "Load Balancer Backend Address Pool: (Backend Address Pool Name \"mediawikibpappname\" / Load Balancer Name \"applb\" / Resource Group \"mediawikirg\")": network.LoadBalancerBackendAddressPoolsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ModificationOfNICIpConfigBackendPoolNotSupported" Message="Operation on backend pool /subscriptions/49db0cbb-ac2c-4caa-b82b-39b1426c634d/resourceGroups/mediawikirg/providers/Microsoft.Network/loadBalancers/applb/backendAddressPools/mediawikibpappname not allowed since it adds/modifies/deletes backend address pool members that are specified with a network interface IP configuration." Details=[][0m
I am getting the same error, what is the workaround?
Hello - we are also receiving this issue with "azurerm_lb_backend_address_pool" for both our prod and test environments.
Output below:
â•·
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to azurerm_network_interface_backend_address_pool_association.nic_association["vm-nic-agent-02"], provider "provider[\"registry.terraform.io/hashicorp/azurerm\"]" produced an unexpected new value: Root
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
â•·
│ Error: updating Loadbalancer "lbi-agent-prod-eus2-azr-001" (resource group "rg-data-prod-agent-azr-01") for Rule "lbi-rule-agent-prod-01": network.LoadBalancersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/subscription_id/resourceGroups/rg-data-prod-agent-azr-01/providers/Microsoft.Network/loadBalancers/lbi-agent-prod-eus2-azr-001/probes/lbi-backend-agent-prod-01 referenced by resource /subscriptions/subscription_id/resourceGroups/rg-data-prod-agent-azr-01/providers/Microsoft.Network/loadBalancers/lbi-agent-prod-eus2-azr-001/loadBalancingRules/lbi-rule-agent-prod-01 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[]
│
│ with azurerm_lb_rule.lb_rule["lb-rule-agent-prod-01"],
│ on main.tf line 265, in resource "azurerm_lb_rule" "lb_rule":
│ 265: resource "azurerm_lb_rule" "lb_rule" {
Similar to the above commenters, is there an update or workaround here? We've begun to incorporate azure lbs and this is the odd man out.
Facing the same issue. Need a fix or workaround
Facing the same issue
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_lb_backend_address_pool
Terraform Configuration Files
Debug Output
Terraform will perform the following actions:
Panic Output
Expected Behaviour
There should't be any changes while running terraform plan
Actual Behaviour
The backend_address will be rebuilt
Steps to Reproduce
using
terraform apply
to deploy the resourceterraform plan
, one change has been shown:This is expected since we add a new vm into the pool via azure portal.
Now trying to updated the code to match the new changes, add the backend_address to the configuration:
and run
terraform plan
, however, the output shows that terraform will destroy the backend_address and rebuild it. What we expected here is terraform shows "infrastructure up to date" Also, trying to runterraform refresh
and check the tf state file, the "backend address pool" part:Still, there is unexpected changes while running
terraform plan
even we run
terraform apply
and try to apply the changes, we will still get an error out put:Important Factoids
References
0000