From a077fe04946d5619619951f55718b568ac09ca5b Mon Sep 17 00:00:00 2001 From: Adrian Celebanski <135693994+acelebanski@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:28:20 +0200 Subject: [PATCH] fix: Allow to change Health Probe for an LB Rule (#78) --- modules/loadbalancer/main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/loadbalancer/main.tf b/modules/loadbalancer/main.tf index 4976229..322b67c 100644 --- a/modules/loadbalancer/main.tf +++ b/modules/loadbalancer/main.tf @@ -144,6 +144,10 @@ resource "azurerm_lb_probe" "this" { # this is to overcome the discrepancy between the provider and Azure defaults # for more details see here -> https://learn.microsoft.com/en-gb/azure/load-balancer/whats-new#known-issues:~:text=SNAT%20port%20exhaustion-,numberOfProbes,-%2C%20%22Unhealthy%20threshold%22 number_of_probes = 1 + + lifecycle { + create_before_destroy = true + } } # https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/lb_rule