From 98373c97d4a522b786d860762471ef9c2fac0791 Mon Sep 17 00:00:00 2001 From: Johns293 Date: Tue, 28 Nov 2023 09:35:28 +0000 Subject: [PATCH] Remove depends_on --- custom_script.tf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/custom_script.tf b/custom_script.tf index c28a964..057f68e 100644 --- a/custom_script.tf +++ b/custom_script.tf @@ -3,10 +3,6 @@ resource "azurerm_virtual_machine_scale_set_extension" "custom_script" { count = (var.install_splunk_uf == true || var.install_nessus_agent == true || var.additional_script_path != null) && var.virtual_machine_type == "vmss" ? 1 : 0 - depends_on = [azurerm_virtual_machine_scale_set_extension.endpoint_protection] - lifecycle { - prevent_destroy = true - } name = var.custom_script_extension_name virtual_machine_scale_set_id = var.virtual_machine_scale_set_id publisher = lower(var.os_type) == "linux" ? "Microsoft.Azure.Extensions" : lower(var.os_type) == "windows" ? "Microsoft.Compute" : null