Skip to content

Commit b531a3e

Browse files
authored
update skus
1 parent 91cfe9a commit b531a3e

File tree

1 file changed

+5
-80
lines changed

1 file changed

+5
-80
lines changed

articles/vpn-gateway/create-routebased-vpn-gateway-powershell.md

Lines changed: 5 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to create a route-based virtual network gateway for a VPN
55
author: cherylmc
66
ms.service: vpn-gateway
77
ms.topic: how-to
8-
ms.date: 03/11/2022
8+
ms.date: 07/17/2023
99
ms.author: cherylmc
1010
ms.custom: devx-track-azurepowershell
1111
---
@@ -82,10 +82,10 @@ $vnet | Set-AzVirtualNetwork
8282

8383
## <a name="PublicIP"></a>Request a public IP address
8484

85-
A VPN gateway must have a dynamically allocated public IP address. When you create a connection to a VPN gateway, this is the IP address that you specify. Use the following example to request a public IP address:
85+
A VPN gateway must have an allocated public IP address. When you create a connection to a VPN gateway, this is the IP address that you specify. Use the following example to request a public IP address:
8686

8787
```azurepowershell-interactive
88-
$gwpip= New-AzPublicIpAddress -Name VNet1GWIP -ResourceGroupName TestRG1 -Location 'East US' -AllocationMethod Dynamic
88+
$gwpip = New-AzPublicIpAddress -Name "VNet1GWIP" -ResourceGroupName "TestRG1" -Location "EastUS" -AllocationMethod Static -Sku Standard
8989
```
9090

9191
## <a name="GatewayIPConfig"></a>Create the gateway IP address configuration
@@ -103,8 +103,8 @@ Creating a gateway can often take 45 minutes or more, depending on the selected
103103

104104
```azurepowershell-interactive
105105
New-AzVirtualNetworkGateway -Name VNet1GW -ResourceGroupName TestRG1 `
106-
-Location 'East US' -IpConfigurations $gwipconfig -GatewayType Vpn `
107-
-VpnType RouteBased -GatewaySku VpnGw1
106+
-Location "East US" -IpConfigurations $gwipconfig -GatewayType "Vpn" `
107+
-VpnType "RouteBased" GatewaySku VpnGw2 -VpnGatewayGeneration "Generation2"
108108
```
109109

110110
## <a name="viewgw"></a>View the VPN gateway
@@ -114,52 +114,6 @@ You can view the VPN gateway using the [Get-AzVirtualNetworkGateway](/powershell
114114
```azurepowershell-interactive
115115
Get-AzVirtualNetworkGateway -Name Vnet1GW -ResourceGroup TestRG1
116116
```
117-
118-
The output will look similar to this example:
119-
120-
```
121-
Name : VNet1GW
122-
ResourceGroupName : TestRG1
123-
Location : eastus
124-
Id : /subscriptions/<subscription ID>/resourceGroups/TestRG1/provide
125-
rs/Microsoft.Network/virtualNetworkGateways/VNet1GW
126-
Etag : W/"0952d-9da8-4d7d-a8ed-28c8ca0413"
127-
ResourceGuid : dc6ce1de-2c4494-9d0b-20b03ac595
128-
ProvisioningState : Succeeded
129-
Tags :
130-
IpConfigurations : [
131-
{
132-
"PrivateIpAllocationMethod": "Dynamic",
133-
"Subnet": {
134-
"Id": "/subscriptions/<subscription ID>/resourceGroups/Te
135-
stRG1/providers/Microsoft.Network/virtualNetworks/VNet1/subnets/GatewaySubnet"
136-
},
137-
"PublicIpAddress": {
138-
"Id": "/subscriptions/<subscription ID>/resourceGroups/Te
139-
stRG1/providers/Microsoft.Network/publicIPAddresses/VNet1GWIP"
140-
},
141-
"Name": "default",
142-
"Etag": "W/\"0952d-9da8-4d7d-a8ed-28c8ca0413\"",
143-
"Id": "/subscriptions/<subscription ID>/resourceGroups/Test
144-
RG1/providers/Microsoft.Network/virtualNetworkGateways/VNet1GW/ipConfigurations/de
145-
fault"
146-
}
147-
]
148-
GatewayType : Vpn
149-
VpnType : RouteBased
150-
EnableBgp : False
151-
ActiveActive : False
152-
GatewayDefaultSite : null
153-
Sku : {
154-
"Capacity": 2,
155-
"Name": "VpnGw1",
156-
"Tier": "VpnGw1"
157-
}
158-
VpnClientConfiguration : null
159-
BgpSettings : {
160-
161-
```
162-
163117
## <a name="viewgwpip"></a>View the public IP address
164118

165119
To view the public IP address for your VPN gateway, use the [Get-AzPublicIpAddress](/powershell/module/az.network/Get-azPublicIpAddress) cmdlet.
@@ -168,35 +122,6 @@ To view the public IP address for your VPN gateway, use the [Get-AzPublicIpAddre
168122
Get-AzPublicIpAddress -Name VNet1GWIP -ResourceGroupName TestRG1
169123
```
170124

171-
In the example response, the IpAddress value is the public IP address.
172-
173-
```
174-
Name : VNet1GWIP
175-
ResourceGroupName : TestRG1
176-
Location : eastus
177-
Id : /subscriptions/<subscription ID>/resourceGroups/TestRG1/provi
178-
ders/Microsoft.Network/publicIPAddresses/VNet1GWIP
179-
Etag : W/"5001666a-bc2a-484b-bcf5-ad488dabd8ca"
180-
ResourceGuid : 3c7c481e-9828-4dae-abdc-f95b383
181-
ProvisioningState : Succeeded
182-
Tags :
183-
PublicIpAllocationMethod : Dynamic
184-
IpAddress : 13.90.153.3
185-
PublicIpAddressVersion : IPv4
186-
IdleTimeoutInMinutes : 4
187-
IpConfiguration : {
188-
"Id": "/subscriptions/<subscription ID>/resourceGroups/Test
189-
RG1/providers/Microsoft.Network/virtualNetworkGateways/VNet1GW/ipConfigurations/
190-
default"
191-
}
192-
DnsSettings : null
193-
Zones : {}
194-
Sku : {
195-
"Name": "Basic"
196-
}
197-
IpTags : {}
198-
```
199-
200125
## Clean up resources
201126

202127
When you no longer need the resources you created, use the [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) command to delete the resource group. This will delete the resource group and all of the resources it contains.

0 commit comments

Comments
 (0)