Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
Johns293 authored and Johns293 committed Nov 27, 2023
1 parent 6c8638b commit f04199b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_script.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ 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
Expand Down

0 comments on commit f04199b

Please sign in to comment.