From 7a83911910507fcb7a267438443c1252e6268724 Mon Sep 17 00:00:00 2001 From: Johns293 Date: Mon, 27 Nov 2023 22:58:23 +0000 Subject: [PATCH] set to true --- custom_script.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_script.tf b/custom_script.tf index 647d26a..c28a964 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 { - create_before_destroy = true + prevent_destroy = true } name = var.custom_script_extension_name virtual_machine_scale_set_id = var.virtual_machine_scale_set_id