Skip to content

Commit d7f9d8f

Browse files
author
maddieclayton
authored
Merge pull request Azure#4961 from henry416/preview
Removing redundant default settings for VPN Client Protocols in VirtualNetworkGateway
2 parents 0bde51e + 61132ee commit d7f9d8f

File tree

3 files changed

+67804
-414771
lines changed

3 files changed

+67804
-414771
lines changed

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/VirtualNetworkGatewayTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,13 @@ function Test-VirtualNetworkGatewayIkeV2
589589
$vnetIpConfig = New-AzureRmVirtualNetworkGatewayIpConfig -Name $vnetGatewayConfigName -PublicIpAddress $publicip -Subnet $subnet
590590

591591
# Create & Get IkeV2 + SSTP virtualnetworkgateway
592-
New-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType Vpn -VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientProtocol @( "IkeV2", "SSTP" ) -VpnClientAddressPool 201.169.0.0/16 -VpnClientRootCertificates $rootCert
592+
New-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType Vpn -VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientAddressPool 201.169.0.0/16 -VpnClientRootCertificates $rootCert
593593
$actual = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname
594594
Assert-AreEqual "VpnGw1" $actual.Sku.Tier
595595
$protocols = $actual.VpnClientConfiguration.VpnClientProtocols
596596
Assert-AreEqual 2 @($protocols).Count
597-
Assert-AreEqual "IkeV2" $protocols[0]
598-
Assert-AreEqual "SSTP" $protocols[1]
597+
Assert-AreEqual "SSTP" $protocols[0]
598+
Assert-AreEqual "IkeV2" $protocols[1]
599599
Assert-AreEqual "201.169.0.0/16" $actual.VpnClientConfiguration.VpnClientAddressPool.AddressPrefixes
600600

601601
# Update gateway to IkeV2 only

0 commit comments

Comments
 (0)