From 06290b7116e3e0eb4c0be11ee2e107d2f2477c0e Mon Sep 17 00:00:00 2001 From: Elena Xin <39109137+sinbai@users.noreply.github.com> Date: Fri, 17 Feb 2023 10:17:51 +0800 Subject: [PATCH] `azurerm_mssql_managed_instance` : fix acc test failure for priority changed after apply (#20033) --- .../mssql/mssql_managed_instance_resource_test.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/internal/services/mssql/mssql_managed_instance_resource_test.go b/internal/services/mssql/mssql_managed_instance_resource_test.go index bf8b908baf8c..dead6b7bfe75 100644 --- a/internal/services/mssql/mssql_managed_instance_resource_test.go +++ b/internal/services/mssql/mssql_managed_instance_resource_test.go @@ -16,6 +16,11 @@ import ( type MsSqlManagedInstanceResource struct{} const managedInstanceStaticRoutes = ` + route { + name = "Microsoft.Sql-managedInstances_UseOnly_mi-OneDsCollector" + address_prefix = "OneDsCollector" + next_hop_type = "Internet" + } route { name = "mi-13-64-11-nexthop-internet" address_prefix = "13.64.0.0/11" @@ -1767,7 +1772,7 @@ resource "azurerm_network_security_rule" "deny_all_inbound_1" { resource "azurerm_network_security_rule" "allow_management_outbound_1" { name = "allow_management_outbound" - priority = 102 + priority = 110 direction = "Outbound" access = "Allow" protocol = "Tcp" @@ -2002,7 +2007,7 @@ resource "azurerm_network_security_rule" "deny_all_inbound_2" { resource "azurerm_network_security_rule" "allow_management_outbound_2" { name = "allow_management_outbound" - priority = 102 + priority = 110 direction = "Outbound" access = "Allow" protocol = "Tcp" @@ -2237,7 +2242,7 @@ resource "azurerm_network_security_rule" "deny_all_inbound_3" { resource "azurerm_network_security_rule" "allow_management_outbound_3" { name = "allow_management_outbound" - priority = 102 + priority = 110 direction = "Outbound" access = "Allow" protocol = "Tcp"