Skip to content

Commit

Permalink
added condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Johns293 authored and Johns293 committed Nov 27, 2023
1 parent 31224ae commit 948fdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_script.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 948fdeb

Please sign in to comment.