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

Commit

Permalink
fix(modules/virtual_machine): Add dependencies for backend pool assoc…
Browse files Browse the repository at this point in the history
…iation (#312)
  • Loading branch information
michalbil authored Sep 7, 2023
1 parent 2ef8771 commit ea91b40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/virtual_machine/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,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 ea91b40

Please sign in to comment.