Skip to content

Commit a7eb2ca

Browse files
authored
Update VPN gateway creation commands
1 parent afbb548 commit a7eb2ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

learn-pr/azure/configure-network-for-azure-virtual-machines/includes/5-exercise-create-azure-vpn-gateway.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $GWIPconfName = "gwipconf"
7070
1. Run the following command to request a dynamically assigned public IP address.
7171
7272
```PowerShell
73-
$pip = New-AzPublicIpAddress -Name $GWIPName -ResourceGroupName $ResourceGroup -Location $Location -AllocationMethod Dynamic
73+
$pip = New-AzPublicIpAddress -Name $GWIPName -ResourceGroupName $ResourceGroup -Location $Location -AllocationMethod Static -Sku Standard -Zone 1,2,3
7474
$ipconf = New-AzVirtualNetworkGatewayIpConfig -Name $GWIPconfName -Subnet $subnet -PublicIpAddress $pip
7575
```
7676
@@ -88,7 +88,7 @@ This part of the exercise can take up to 45 minutes to complete.
8888
```PowerShell
8989
New-AzVirtualNetworkGateway -Name $GWName -ResourceGroupName $ResourceGroup `
9090
-Location $Location -IpConfigurations $ipconf -GatewayType Vpn `
91-
-VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientProtocol "IKEv2"
91+
-VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1AZ -VpnClientProtocol "IKEv2"
9292
```
9393
9494
1. Wait for the command output to appear.

0 commit comments

Comments
 (0)