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