Skip to content

Commit ce83ccb

Browse files
Merge pull request #233948 from cherylmc/patch-10
Update vpn-gateway-create-site-to-site-rm-powershell.md
2 parents 78dee0b + b967509 commit ce83ccb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/vpn-gateway/vpn-gateway-create-site-to-site-rm-powershell.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This article shows you how to use PowerShell to create a Site-to-Site VPN gatewa
2424
2525
A Site-to-Site VPN gateway connection is used to connect your on-premises network to an Azure virtual network over an IPsec/IKE (IKEv1 or IKEv2) VPN tunnel. This type of connection requires a VPN device located on-premises that has an externally facing public IP address assigned to it. For more information about VPN gateways, see [About VPN gateway](vpn-gateway-about-vpngateways.md).
2626

27-
![Site-to-Site VPN Gateway cross-premises connection diagram](./media/vpn-gateway-create-site-to-site-rm-powershell/site-to-site-diagram.png)
27+
:::image type="content" source="./media/tutorial-site-to-site-portal/diagram.png" alt-text="Site-to-site VPN Gateway cross-premises connection diagram.":::
2828

2929
## <a name="before"></a>Before you begin
3030

@@ -47,19 +47,19 @@ The examples in this article use the following values. You can use these values
4747
4848
VnetName = VNet1
4949
ResourceGroup = TestRG1
50-
Location = East US 
51-
AddressSpace = 10.1.0.0/16 
52-
SubnetName = Frontend 
53-
Subnet = 10.1.0.0/24 
50+
Location = East US
51+
AddressSpace = 10.1.0.0/16
52+
SubnetName = Frontend
53+
Subnet = 10.1.0.0/24
5454
GatewaySubnet = 10.1.255.0/27
5555
LocalNetworkGatewayName = Site1
56-
LNG Public IP = <On-premises VPN device IP address> 
57-
Local Address Prefixes = 10.101.0.0/24, 10.101.1.0/24
56+
LNG Public IP = <On-premises VPN device IP address>
57+
Local Address Prefixes = 10.0.0.0/24, 20.0.0.0/24
5858
Gateway Name = VNet1GW
5959
PublicIP = VNet1GWPIP
60-
Gateway IP Config = gwipconfig1 
61-
VPNType = RouteBased 
62-
GatewayType = Vpn 
60+
Gateway IP Config = gwipconfig1
61+
VPNType = RouteBased
62+
GatewayType = Vpn
6363
ConnectionName = VNet1toSite1
6464
6565
```
@@ -137,14 +137,14 @@ To add a local network gateway with a single address prefix:
137137

138138
```azurepowershell-interactive
139139
New-AzLocalNetworkGateway -Name Site1 -ResourceGroupName TestRG1 `
140-
-Location 'East US' -GatewayIpAddress '23.99.221.164' -AddressPrefix '10.101.0.0/24'
140+
-Location 'East US' -GatewayIpAddress '23.99.221.164' -AddressPrefix '10.0.0.0/24'
141141
```
142142

143143
To add a local network gateway with multiple address prefixes:
144144

145145
```azurepowershell-interactive
146146
New-AzLocalNetworkGateway -Name Site1 -ResourceGroupName TestRG1 `
147-
-Location 'East US' -GatewayIpAddress '23.99.221.164' -AddressPrefix @('10.101.0.0/24','10.101.1.0/24')
147+
-Location 'East US' -GatewayIpAddress '23.99.221.164' -AddressPrefix @('20.0.0.0/24','10.0.0.0/24')
148148
```
149149

150150
To modify IP address prefixes for your local network gateway:
@@ -160,7 +160,7 @@ VPN Gateway currently only supports *Dynamic* Public IP address allocation. You
160160
Request a Public IP address that will be assigned to your virtual network VPN gateway.
161161

162162
```azurepowershell-interactive
163-
$gwpip= New-AzPublicIpAddress -Name VNet1GWPIP -ResourceGroupName TestRG1 -Location 'East US' -AllocationMethod Dynamic
163+
$gwpip= New-AzPublicIpAddress -Name VNet1GWPIP -ResourceGroupName TestRG1 -Location 'East US' -AllocationMethod Static -Sku Standard
164164
```
165165

166166
## <a name="GatewayIPConfig"></a>4. Create the gateway IP addressing configuration
@@ -179,7 +179,7 @@ Create the virtual network VPN gateway.
179179

180180
Use the following values:
181181

182-
* The *-GatewayType* for a Site-to-Site configuration is *Vpn*. The gateway type is always specific to the configuration that you are implementing. For example, other gateway configurations may require -GatewayType ExpressRoute.
182+
* The *-GatewayType* for a site-to-site configuration is *Vpn*. The gateway type is always specific to the configuration that you are implementing. For example, other gateway configurations may require -GatewayType ExpressRoute.
183183
* The *-VpnType* can be *RouteBased* (referred to as a Dynamic Gateway in some documentation), or *PolicyBased* (referred to as a Static Gateway in some documentation). For more information about VPN gateway types, see [About VPN Gateway](vpn-gateway-about-vpngateways.md).
184184
* Select the Gateway SKU that you want to use. There are configuration limitations for certain SKUs. For more information, see [Gateway SKUs](vpn-gateway-about-vpn-gateway-settings.md#gwsku). If you get an error when creating the VPN gateway regarding the -GatewaySku, verify that you have installed the latest version of the PowerShell cmdlets.
185185

0 commit comments

Comments
 (0)