Skip to content

Commit aeff32e

Browse files
committed
fixed formatting
1 parent fc6cbb0 commit aeff32e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,22 @@ In the following steps, you'll use commands to add a static route to the virtual
133133
134134
1. Update the hub's current default route table:
135135
136-
```azurepowershell-interactive
136+
```azurepowershell-interactive
137137
Update-AzVHubRouteTable -ResourceGroupName "[resource group name]"-VirtualHubName [“Hub Name”] -Name "defaultRouteTable" -Route @($routeTable.Routes)
138-
```
138+
```
139139
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
145-
```azurepowershell-interactive
145+
```azurepowershell-interactive
146146
$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
151-
```
151+
```
152152
1. Verify that the static route is established to a next-hop IP address.
153153
154154
```azurepowershell-interactive

0 commit comments

Comments
 (0)