CmdID

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

az network route-table route update

Update a route in a route table. Azure CLI reference

2 examples 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

Update a route in a route table to change the next hop ip address.

az network route-table route update -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute --next-hop-ip-address 10.0.100.5Identify
-gName of resource group.
--route-table-nameRoute table name.
-nRoute name.
--next-hop-ip-addressThe IP address packets should be forwarded to when using the VirtualAppliance hop type.

Update a route in a route table.

az network route-table route update --address-prefix 10.0.0.0/16 --name MyRoute --next-hop-ip-address 10.0.100.5 --next-hop-type VirtualNetworkGateway --resource-group MyResourceGroup --route-table-name MyRouteTableIdentify
--address-prefixThe destination CIDR to which the route applies.
--nameRoute 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.
--resource-groupName of resource group.
--route-table-nameRoute table name.

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.