Skip to content

Commit 59afffd

Browse files
Merge pull request #291330 from halkazwini/ez-er-ps
Add Extended Zones
2 parents d93e9eb + 6f432b7 commit 59afffd

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

articles/expressroute/expressroute-howto-add-gateway-resource-manager.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ services: expressroute
55
author: duongau
66
ms.service: azure-expressroute
77
ms.topic: how-to
8-
ms.date: 09/11/2023
8+
ms.date: 12/03/2024
99
ms.author: duau
10-
ms.custom: devx-track-azurepowershell, template-tutorial
10+
ms.custom: devx-track-azurepowershell
1111
---
1212
# Configure a virtual network gateway for ExpressRoute using PowerShell
1313
> [!div class="op_single_selector"]
@@ -16,15 +16,15 @@ ms.custom: devx-track-azurepowershell, template-tutorial
1616
> * [Classic - PowerShell](expressroute-howto-add-gateway-classic.md)
1717
>
1818
19-
This article walks you through the steps to add, resize, and remove a virtual network gateway for a pre-existing virtual network (VNet) using PowerShell. The steps for this configuration apply to VNets that were created using the Resource Manager deployment model for an ExpressRoute configuration. For more information about virtual network gateways and gateway configuration settings for ExpressRoute, see [About virtual network gateways for ExpressRoute](expressroute-about-virtual-network-gateways.md).
19+
This article walks you through the steps to add, resize, and remove a virtual network gateway for a preexisting virtual network (VNet) using PowerShell. The steps for this configuration apply to VNets that were created using the Resource Manager deployment model for an ExpressRoute configuration. For more information about virtual network gateways and gateway configuration settings for ExpressRoute, see [About virtual network gateways for ExpressRoute](expressroute-about-virtual-network-gateways.md).
2020

2121
:::image type="content" source="./media/expressroute-howto-add-gateway-portal-resource-manager/gateway-circuit.png" alt-text="Diagram showing an ExpressRoute gateway connected to the ExpressRoute circuit." lightbox="./media/expressroute-howto-add-gateway-portal-resource-manager/gateway-circuit.png":::
2222

2323
## Prerequisites
2424

2525
### Configuration reference list
2626

27-
The steps for this task use a VNet based on the values in the following configuration reference list. Additional settings and names are also outlined in this list. We don't use this list directly in any of the steps, although we do add variables based on the values in this list. You can copy the list to use as a reference, replacing the values with your own.
27+
The steps for this task use a VNet based on the values in the following configuration reference list. More settings and names are also outlined in this list. We don't use this list directly in any of the steps, although we do add variables based on the values in this list. You can copy the list to use as a reference, replacing the values with your own.
2828

2929
| Setting | Value |
3030
| --- | --- |
@@ -36,7 +36,7 @@ The steps for this task use a VNet based on the values in the following configur
3636
| Subnet1 Name | *FrontEnd* |
3737
| Gateway Subnet name | *GatewaySubnet* |
3838
| Gateway Subnet address space | *192.168.200.0/26* |
39-
| Region | *East US* |
39+
| Region | *West US* |
4040
| Gateway Name | *GW* |
4141
| Gateway IP Name | *GWIP* |
4242
| 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
5555

5656
```azurepowershell-interactive
5757
$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, add the **$ExtendedLocation** variable.
66+
67+
```azurepowershell-interactive
68+
$RG = "TestRG"
69+
$Location = "West US"
70+
$ExtendedLocation = "losangeles"
5971
$GWName = "GW"
6072
$GWIPName = "GWIP"
6173
$GWIPconfName = "gwipconf"
@@ -90,6 +102,11 @@ The steps for this task use a VNet based on the values in the following configur
90102

91103
```azurepowershell-interactive
92104
$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 the Extended Zone using the **-ExtendedLocation** parameter.
107+
108+
```azurepowershell-interactive
109+
$pip = New-AzPublicIpAddress -Name $GWIPName -ResourceGroupName $RG -Location $Location -ExtendedLocation $ExtendedLocation -AllocationMethod Static -SKU Standard
93110
```
94111

95112
> [!NOTE]
@@ -105,6 +122,11 @@ The steps for this task use a VNet based on the values in the following configur
105122
```azurepowershell-interactive
106123
New-AzVirtualNetworkGateway -Name $GWName -ResourceGroupName $RG -Location $Location -IpConfigurations $ipconf -GatewayType Expressroute -GatewaySku Standard
107124
```
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+
```
108130

109131
## Verify the gateway was created
110132

0 commit comments

Comments
 (0)