Share via


az network vhub route

Note

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

This command group has been deprecated and will be removed in a future release. Use 'network vhub route-table' instead.

Manage entries in the virtual hub route table.

Commands

Name Description Type Status
az network vhub route add

Add a route to the virtual hub route table.

Extension Deprecated
az network vhub route list

List routes in the virtual hub route table.

Extension Deprecated
az network vhub route remove

Remove a route from the virtual hub route table.

Extension Deprecated
az network vhub route reset

Reset virtual hub route when the route state is failed.

Extension Deprecated

az network vhub route add

Deprecated

This command is implicitly deprecated because command group 'network vhub route' is deprecated and will be removed in a future release. Use 'network vhub route-table' instead.

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.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az network vhub route list

Deprecated

This command is implicitly deprecated because command group 'network vhub route' is deprecated and will be removed in a future release. Use 'network vhub route-table' instead.

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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az network vhub route remove

Deprecated

This command is implicitly deprecated because command group 'network vhub route' is deprecated and will be removed in a future release. Use 'network vhub route-table' instead.

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.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az network vhub route reset

Deprecated

This command is implicitly deprecated because command group 'network vhub route' is deprecated and will be removed in a future release. Use 'network vhub route-table' instead.

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.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.