Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
fix(module/vmseries): fix destroy sequence for LB backends (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
FoSix authored Mar 22, 2023
1 parent ce745e4 commit d7f7116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/vmseries/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ resource "azurerm_network_interface_backend_address_pool_association" "this" {
backend_address_pool_id = each.value.lb_backend_pool_id
ip_configuration_name = azurerm_network_interface.this[each.key].ip_configuration[0].name
network_interface_id = azurerm_network_interface.this[each.key].id

depends_on = [
azurerm_network_interface.this,
azurerm_virtual_machine.this
]
}

resource "azurerm_virtual_machine" "this" {
Expand Down

0 comments on commit d7f7116

Please sign in to comment.