diff --git a/internal/services/network/vpn_gateway_connection_resource.go b/internal/services/network/vpn_gateway_connection_resource.go index ee3a9cd6d165..d3cca4ae5d8c 100644 --- a/internal/services/network/vpn_gateway_connection_resource.go +++ b/internal/services/network/vpn_gateway_connection_resource.go @@ -219,7 +219,7 @@ func resourceVPNGatewayConnection() *pluginsdk.Resource { "sa_data_size_kb": { Type: pluginsdk.TypeInt, Required: true, - ValidateFunc: validation.IntBetween(1024, 2147483647), + ValidateFunc: validation.IntBetween(0, 2147483647), }, "encryption_algorithm": { Type: pluginsdk.TypeString, diff --git a/internal/services/network/vpn_gateway_connection_resource_test.go b/internal/services/network/vpn_gateway_connection_resource_test.go index fe7f1204e55f..faec7a71a796 100644 --- a/internal/services/network/vpn_gateway_connection_resource_test.go +++ b/internal/services/network/vpn_gateway_connection_resource_test.go @@ -328,7 +328,7 @@ resource "azurerm_vpn_gateway_connection" "test" { vpn_site_link_id = azurerm_vpn_site.test.link[0].id ipsec_policy { sa_lifetime_sec = 300 - sa_data_size_kb = 1024 + sa_data_size_kb = 0 encryption_algorithm = "AES256" integrity_algorithm = "SHA256" ike_encryption_algorithm = "AES128" @@ -374,7 +374,7 @@ resource "azurerm_vpn_gateway_connection" "test" { vpn_site_link_id = azurerm_vpn_site.test.link[0].id ipsec_policy { sa_lifetime_sec = 300 - sa_data_size_kb = 1024 + sa_data_size_kb = 0 encryption_algorithm = "AES256" integrity_algorithm = "SHA256" ike_encryption_algorithm = "AES128" @@ -738,7 +738,7 @@ resource "azurerm_vpn_gateway_connection" "test" { ipsec_policy { sa_lifetime_sec = 300 - sa_data_size_kb = 1024 + sa_data_size_kb = 0 encryption_algorithm = "AES256" integrity_algorithm = "SHA256" ike_encryption_algorithm = "AES128"