@@ -5,7 +5,7 @@ services: expressroute
5
5
author : duongau
6
6
ms.service : azure-expressroute
7
7
ms.topic : how-to
8
- ms.date : 09/11/2023
8
+ ms.date : 12/03/2024
9
9
ms.author : duau
10
10
ms.custom : devx-track-azurepowershell, template-tutorial
11
11
---
@@ -36,7 +36,7 @@ The steps for this task use a VNet based on the values in the following configur
36
36
| Subnet1 Name | * FrontEnd* |
37
37
| Gateway Subnet name | * GatewaySubnet* |
38
38
| Gateway Subnet address space | * 192.168.200.0/26* |
39
- | Region | * East US* |
39
+ | Region | * West US* |
40
40
| Gateway Name | * GW* |
41
41
| Gateway IP Name | * GWIP* |
42
42
| Gateway IP configuration Name | * gwipconf* |
@@ -55,7 +55,19 @@ The steps for this task use a VNet based on the values in the following configur
55
55
56
56
``` azurepowershell-interactive
57
57
$RG = "TestRG"
58
- $Location = "East US"
58
+ $Location = "West US"
59
+ $GWName = "GW"
60
+ $GWIPName = "GWIP"
61
+ $GWIPconfName = "gwipconf"
62
+ $VNetName = "TestVNet"
63
+ ```
64
+
65
+ If you want to create the gateway in an Azure Extended Zone, declare the following variables.
66
+
67
+ ``` azurepowershell-interactive
68
+ $RG = "TestRG"
69
+ $Location = "West US"
70
+ $ExtendedLocation = “losangeles”
59
71
$GWName = "GW"
60
72
$GWIPName = "GWIP"
61
73
$GWIPconfName = "gwipconf"
@@ -90,6 +102,11 @@ The steps for this task use a VNet based on the values in the following configur
90
102
91
103
``` azurepowershell-interactive
92
104
$pip = New-AzPublicIpAddress -Name $GWIPName -ResourceGroupName $RG -Location $Location -AllocationMethod Static -SKU Standard
105
+ ```
106
+ If you want to create the gateway in an Azure Extended Zone, request a public IP address in an Extended Zone using the ** -ExtendedLocation** parameter.
107
+
108
+ ``` azurepowershell-interactive
109
+ $pip = New-AzPublicIpAddress -Name $GWIPName -ResourceGroupName $RG -Location $Location -AllocationMethod Static -SKU Standard -ExtendedLocation $ExtendedLocation
93
110
```
94
111
95
112
> [ !NOTE]
@@ -105,6 +122,11 @@ The steps for this task use a VNet based on the values in the following configur
105
122
``` azurepowershell-interactive
106
123
New-AzVirtualNetworkGateway -Name $GWName -ResourceGroupName $RG -Location $Location -IpConfigurations $ipconf -GatewayType Expressroute -GatewaySku Standard
107
124
```
125
+ If you want to create the gateway in an Azure Extended Zone, add the ** -ExtendedLocation** parameter.
126
+
127
+ ``` azurepowershell-interactive
128
+ New-AzVirtualNetworkGateway -Name $GWName -ResourceGroupName $RG -Location $Location -ExtendedLocation $ExtendedLocation -IpConfigurations $ipconf -GatewayType Expressroute -GatewaySku Standard
129
+ ```
108
130
109
131
## Verify the gateway was created
110
132
0 commit comments