az network route-table route

Manage routes in a route table.

Commands

az network route-table route create Create a route in a route table.
az network route-table route delete Delete a route from a route table.
az network route-table route list List routes in a route table.
az network route-table route show Get the details of a route in a route table.
az network route-table route update Update a route in a route table.

az network route-table route create

Create a route in a route table.

az network route-table route create --address-prefix
--name
--next-hop-type {Internet, None, VirtualAppliance, VirtualNetworkGateway, VnetLocal}
--resource-group
--route-table-name
[--next-hop-ip-address]

Required Parameters

--address-prefix
The destination CIDR to which the route applies.
--name -n
Route name.
--next-hop-type
The type of Azure hop the packet should be sent to.
accepted values: Internet, None, VirtualAppliance, VirtualNetworkGateway, VnetLocal
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--route-table-name
Route table name.

Optional Parameters

--next-hop-ip-address
The IP address packets should be forwarded to when using the VirtualAppliance hop type.

az network route-table route delete

Delete a route from a route table.

az network route-table route delete --name
--resource-group
--route-table-name

Required Parameters

--name -n
Route name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--route-table-name
Route table name.

az network route-table route list

List routes in a route table.

az network route-table route list --resource-group
--route-table-name

Required Parameters

--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--route-table-name
Route table name.

az network route-table route show

Get the details of a route in a route table.

az network route-table route show --name
--resource-group
--route-table-name

Required Parameters

--name -n
Route name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--route-table-name
Route table name.

az network route-table route update

Update a route in a route table.

az network route-table route update --name
--resource-group
--route-table-name
[--add]
[--address-prefix]
[--next-hop-ip-address]
[--next-hop-type {Internet, None, VirtualAppliance, VirtualNetworkGateway, VnetLocal}]
[--remove]
[--set]

Required Parameters

--name -n
Route name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--route-table-name
Route table name.

Optional Parameters

--add
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty .
--address-prefix
The destination CIDR to which the route applies.
--next-hop-ip-address
The IP address packets should be forwarded to when using the VirtualAppliance hop type.
--next-hop-type
The type of Azure hop the packet should be sent to.
accepted values: Internet, None, VirtualAppliance, VirtualNetworkGateway, VnetLocal
--remove
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
--set
Update an object by specifying a property path and value to set. Example: --set property1.property2=.