CmdID

CmdID / az / az network / az network route-table / az network route-table route

az network route-table route create

Create a route in a route table. Azure CLI reference

1 example 6 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Create a route that forces all inbound traffic to a Network Virtual Appliance.

az network route-table route create -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute --next-hop-type VirtualAppliance --address-prefix 10.0.0.0/16 --next-hop-ip-address 10.0.100.4Identify
-gName of resource group.
--route-table-nameRoute table name.
-nRoute name.
--next-hop-typeThe type of Azure hop the packet should be sent to.
--address-prefixThe destination CIDR to which the route applies.
--next-hop-ip-addressThe IP address packets should be forwarded to when using the VirtualAppliance hop type.

Options

6 in the Azure CLI reference
--address-prefixThe destination CIDR to which the route applies.
--name, -nRoute name.
--next-hop-ip-addressThe IP address packets should be forwarded to when using the VirtualAppliance hop type.
--next-hop-typeThe type of Azure hop the packet should be sent to.
--next-hopThe next hop definition containing ECMP next hop IP addresses.
--route-table-nameRoute table name.