From 948fdeb7f9feed220c75f184bd238d379b4cc400 Mon Sep 17 00:00:00 2001 From: Johns293 Date: Mon, 27 Nov 2023 22:53:39 +0000 Subject: [PATCH] added condition --- custom_script.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_script.tf b/custom_script.tf index 02c49f2..647d26a 100644 --- a/custom_script.tf +++ b/custom_script.tf @@ -5,7 +5,7 @@ resource "azurerm_virtual_machine_scale_set_extension" "custom_script" { depends_on = [azurerm_virtual_machine_scale_set_extension.endpoint_protection] lifecycle { - prevent_destroy = false + create_before_destroy = true } name = var.custom_script_extension_name virtual_machine_scale_set_id = var.virtual_machine_scale_set_id