Skip to content

Commit 0880921

Browse files
committed
fixed image link to standards and cleaned up PoSH and CLI code
1 parent afd3317 commit 0880921

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

articles/virtual-network/virtual-networks-udr-overview.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,25 @@ The system gives preference to the route with the explicit prefix when there's a
117117
To use this feature, specify a Service Tag name for the address prefix parameter in route table commands. For example, in PowerShell you can create a new route to direct traffic sent to an Azure Storage IP prefix to a virtual appliance by using: </br></br>
118118

119119
```azurepowershell-interactive
120-
New-AzRouteConfig -Name "StorageRoute" -AddressPrefix "Storage" -NextHopType "VirtualAppliance" -NextHopIpAddress "10.0.100.4"
120+
$param = @{
121+
Name = 'StorageRoute'
122+
AddressPrefix = 'Storage'
123+
NextHopType = 'VirtualAppliance'
124+
NextHopIpAddress = '10.0.100.4'
125+
}
126+
New-AzRouteConfig @param
121127
```
122128

123129
The same command for CLI is as follows:
124130

125131
```azurecli-interactive
126-
az network route-table route create -g MyResourceGroup --route-table-name MyRouteTable -n StorageRoute --address-prefix Storage --next-hop-type VirtualAppliance --next-hop-ip-address 10.0.100.4
132+
az network route-table route create \
133+
--resource-group MyResourceGroup \
134+
--route-table-name MyRouteTable \
135+
--name StorageRoute \
136+
--address-prefix Storage \
137+
--next-hop-type VirtualAppliance \
138+
--next-hop-ip-address 10.0.100.4
127139
```
128140

129141
## Next hop types across Azure tools
@@ -241,7 +253,7 @@ To illustrate the concepts in this article, the sections that follow describe:
241253

242254
The following picture shows an implementation through the Azure Resource Manager deployment model that meets the previous requirements:
243255

244-
![Network diagram](./media/virtual-networks-udr-overview/routing-example.png)
256+
:::image type="content" source="./media/virtual-networks-udr-overview/routing-example.png" alt-text="Diagram of network.":::
245257

246258
Arrows show the flow of traffic.
247259

0 commit comments

Comments
 (0)