Skip to content

Commit 3bc854d

Browse files
Merge pull request #233670 from halkazwini/rs-ps2
Route Server: Freshness: Quickstart: Create and configure Route Server using Azure PowerShell
2 parents 11917a4 + 67783ff commit 3bc854d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

articles/route-server/quickstart-configure-route-server-powershell.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: In this quickstart, you learn how to create and configure an Azure
44
services: route-server
55
author: halkazwini
66
ms.author: halkazwini
7-
ms.date: 07/28/2022
7+
ms.date: 04/06/2023
88
ms.topic: quickstart
99
ms.service: route-server
10-
ms.custom: devx-track-azurepowershell, mode-api, template-quickstart
10+
ms.custom: template-quickstart, devx-track-azurepowershell, mode-api, engagement-fy23
1111
---
1212

1313
# Quickstart: Create and configure Route Server using Azure PowerShell
@@ -67,7 +67,7 @@ $subnetConfig = Add-AzVirtualNetworkSubnetConfig @subnet
6767
6868
$virtualnetwork | Set-AzVirtualNetwork
6969
70-
$vnetInfo = Get-AzVirtualNetwork -Name myVirtualNetwork
70+
$vnetInfo = Get-AzVirtualNetwork -Name myVirtualNetwork -ResourceGroupName myRouteServerRG
7171
$subnetId = (Get-AzVirtualNetworkSubnetConfig -Name RouteServerSubnet -VirtualNetwork $vnetInfo).Id
7272
```
7373

@@ -104,13 +104,13 @@ $subnetId = (Get-AzVirtualNetworkSubnetConfig -Name RouteServerSubnet -VirtualNe
104104
105105
To establish BGP peering from the Route Server to your NVA use [Add-AzRouteServerPeer](/powershell/module/az.network/add-azrouteserverpeer):
106106
107-
The your_nva_ip is the virtual network IP assigned to the NVA. The your_nva_asn is the Autonomous System Number (ASN) configured in the NVA. The ASN can be any 16-bit number other than the ones in the range of 65515-65520. This range of ASNs are reserved by Microsoft.
107+
The `your_nva_ip` is the virtual network IP assigned to the NVA. The `your_nva_asn` is the Autonomous System Number (ASN) configured in the NVA. The ASN can be any 16-bit number other than the ones in the range of 65515-65520. This range of ASNs is reserved by Microsoft.
108108
109109
```azurepowershell-interactive
110110
$peer = @{
111-
PeerName = 'myNVA"
112-
PeerIp = '192.168.0.1'
113-
PeerAsn = '65501'
111+
PeerName = 'myNVA'
112+
PeerIp = 'your_nva_ip'
113+
PeerAsn = 'your_nva_asn'
114114
RouteServerName = 'myRouteServer'
115115
ResourceGroupName = myRouteServerRG'
116116
}
@@ -131,7 +131,7 @@ $routeserver = @{
131131
Get-AzRouteServer @routeserver
132132
```
133133

134-
The output will look like the following:
134+
The output looks like the following:
135135

136136
```
137137
RouteServerAsn : 65515
@@ -144,6 +144,9 @@ RouteServerIps : {10.5.10.4, 10.5.10.5}
144144

145145
If you have an ExpressRoute and an Azure VPN gateway in the same virtual network and you want them to exchange routes, you can enable route exchange on the Azure Route Server.
146146

147+
> [!IMPORTANT]
148+
> Azure VPN gateway must be configured in **active-active** mode and have the ASN set to 65515.
149+
147150
1. To enable route exchange between Azure Route Server and the gateway(s), use [Update-AzRouteServer](/powershell/module/az.network/update-azrouteserver) with the *-AllowBranchToBranchTraffic* flag:
148151

149152
```azurepowershell-interactive

0 commit comments

Comments
 (0)