We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e54317 + 5abea1e commit abf2485Copy full SHA for abf2485
articles/expressroute/how-to-routefilter-powershell.md
@@ -96,7 +96,8 @@ Run the following command to attach the route filter to the ExpressRoute circuit
96
97
```azurepowershell-interactive
98
$ckt = Get-AzExpressRouteCircuit -Name "ExpressRouteARMCircuit" -ResourceGroupName "MyResourceGroup"
99
-$ckt.Peerings[0].RouteFilter = $routefilter
+$index = [array]::IndexOf(@($ckt.Peerings.PeeringType), "MicrosoftPeering")
100
+$ckt.Peerings[$index].RouteFilter = $routefilter
101
Set-AzExpressRouteCircuit -ExpressRouteCircuit $ckt
102
```
103
0 commit comments