az network vhub route

Note

This reference is part of the virtual-wan extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az network vhub route command. Learn more about extensions.

Manage entries in the virtual hub route table.

Commands

az network vhub route add

Add a route to the virtual hub route table.

az network vhub route list

List routes in the virtual hub route table.

az network vhub route remove

Remove a route from the virtual hub route table.

az network vhub route reset

Reset virtual hub route when the route state is failed.

az network vhub route add

Add a route to the virtual hub route table.

az network vhub route add --address-prefixes
                          --next-hop
                          --resource-group
                          --vhub-name
                          [--no-wait]

Required Parameters

--address-prefixes

Space-separated list of CIDR prefixes.

--next-hop

IP address of the next hop.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vhub-name

Name of the virtual hub.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az network vhub route list

List routes in the virtual hub route table.

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

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vhub-name

Name of the virtual hub.

az network vhub route remove

Remove a route from the virtual hub route table.

az network vhub route remove --index
                             --resource-group
                             --vhub-name
                             [--no-wait]

Required Parameters

--index

List index of the item (starting with 1).

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vhub-name

Name of the virtual hub.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az network vhub route reset

Reset virtual hub route when the route state is failed.

az network vhub route reset --resource-group
                            --vhub-name
                            [--no-wait]

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vhub-name

Name of the virtual hub.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.