Skip to content

Commit fc6cbb0

Browse files
committed
fixed formatting
1 parent 43842cc commit fc6cbb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

articles/virtual-wan/cross-tenant-vnet.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,19 @@ In the following steps, you'll use commands to add a static route to the virtual
136136
```azurepowershell-interactive
137137
Update-AzVHubRouteTable -ResourceGroupName "[resource group name]"-VirtualHubName [“Hub Name”] -Name "defaultRouteTable" -Route @($routeTable.Routes)
138138
```
139-
$hubV
139+
140140
1. Update the route in the virtual network connection to specify the next hop as an IP address. This sample script adds a new route to the VNET connection (preserving any existing routes).
141141
142142
> [!NOTE]
143143
> The route name should be the same as the one you used when you added a static route earlier. Otherwise, you'll create two routes in the routing table: one without an IP address and one with an IP address.
144144
145145
```azurepowershell-interactive
146-
$newroute = New-AzStaticRoute -Name "[Route Name]" -AddressPrefix "[@("Destination prefix")]" -NextHopIpAddress "[Destination NVA IP address]"
146+
$newroute = New-AzStaticRoute -Name "[Route Name]" -AddressPrefix "[@("Destination prefix")]" -NextHopIpAddress "[Destination NVA IP address]"
147147
148148
$hubVNetConnection.RoutingConfiguration.VnetRoutes.StaticRoutes.add($newroute)
149149
150150
Update-AzVirtualHubVnetConnection -ResourceGroupName $rgname -VirtualHubName "[Hub Name]" -Name "[Virtual hub connection name]" -RoutingConfiguration $hubVNetConnection.RoutingConfiguration
151151
```
152-
153-
154152
1. Verify that the static route is established to a next-hop IP address.
155153
156154
```azurepowershell-interactive

0 commit comments

Comments
 (0)