diff --git a/terraform/infrastructure/azure/main.tf b/terraform/infrastructure/azure/main.tf index 4d552a27144..70e1c909a09 100644 --- a/terraform/infrastructure/azure/main.tf +++ b/terraform/infrastructure/azure/main.tf @@ -233,9 +233,9 @@ resource "azurerm_network_security_rule" "nsg_rule" { for_each = { for o in local.ports : o.name => o } - - name = each.value.name - priority = each.value.priority + # TODO(elchead): v2.20.0: remove name suffix and priority offset. Might need to add create_before_destroy to the NSG rule. + name = "${each.value.name}-new" + priority = each.value.priority+10 # offset to not overlap with old rules direction = "Inbound" access = "Allow" protocol = "Tcp"