Open thllxb opened 3 years ago
2.54.0
azurerm_private_link_service
resource "azurerm_private_link_service" "example" { name = "example-privatelink" resource_group_name = azurerm_resource_group.example.name location = azurerm_resource_group.example.location auto_approval_subscription_ids = ["00000000-0000-0000-0000-000000000000"] visibility_subscription_ids = ["00000000-0000-0000-0000-000000000000"] load_balancer_frontend_ip_configuration_ids = [azurerm_lb.example.frontend_ip_configuration.0.id] nat_ip_configuration { name = "primary" private_ip_address = "10.5.1.17" private_ip_address_version = "IPv4" subnet_id = azurerm_subnet.example.id primary = true } nat_ip_configuration { name = "secondary" private_ip_address = "10.5.1.18" private_ip_address_version = "IPv4" subnet_id = azurerm_subnet.example.id primary = false } }
Terraform should perform the add/update/delete of NAT IP configuration only
Terraform deletes and recreates the entire Private link with the new NAT IP configuration
terraform apply
This issue has not been fixed in provider version 3.x as previously indicated in this older issue: https://github.com/hashicorp/terraform-provider-azurerm/issues/15248
Community Note
Terraform (and AzureRM Provider) Version
2.54.0
Affected Resource(s)
azurerm_private_link_service
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
Terraform should perform the add/update/delete of NAT IP configuration only
Actual Behaviour
Terraform deletes and recreates the entire Private link with the new NAT IP configuration
Steps to Reproduce
terraform apply
References