Skip to content

Commit 8f1a992

Browse files
authored
Merge pull request #206502 from halkazwini/rs-qs
Fixed get advertised/learned routes PS commands
2 parents 8a0b8c3 + ba53ab4 commit 8f1a992

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,18 @@ $remotepeer = @{
173173
ResourceGroupName = 'myRouteServerRG'
174174
PeerName = 'myNVA'
175175
}
176-
Get-AzRouteServerPeerAdvertisedRoute @routeserver
176+
Get-AzRouteServerPeerAdvertisedRoute @remotepeer
177177
```
178178

179179
Use the [Get-AzRouteServerPeerLearnedRoute](/powershell/module/az.network/get-azrouteserverpeerlearnedroute) to view routes learned by the Azure Route Server.
180180

181181
```azurepowershell-interactive
182-
$routeserver = @{
182+
$remotepeer = @{
183183
RouteServerName = 'myRouteServer'
184184
ResourceGroupName = 'myRouteServerRG'
185-
AllowBranchToBranchTraffic
185+
PeerName = 'myNVA'
186186
}
187-
Get-AzRouteServerPeerLearnedRoute @routeserver
187+
Get-AzRouteServerPeerLearnedRoute @remotepeer
188188
```
189189
## Clean up resources
190190

@@ -193,12 +193,12 @@ If you no longer need the Azure Route Server, use the first command to remove th
193193
1. Remove the BGP peering between Azure Route Server and an NVA with [Remove-AzRouteServerPeer](/powershell/module/az.network/remove-azrouteserverpeer):
194194

195195
```azurepowershell-interactive
196-
$peer = @{
196+
$remotepeer = @{
197197
PeerName = 'myNVA'
198198
RouteServerName = 'myRouteServer'
199199
ResourceGroupName = 'myRouteServerRG'
200200
}
201-
Remove-AzRouteServerPeer @peer
201+
Remove-AzRouteServerPeer @remotepeer
202202
```
203203

204204
2. Remove the Azure Route Server with [Remove-AzRouteServer](/powershell/module/az.network/remove-azrouteserver):

0 commit comments

Comments
 (0)