az network vhub route-map
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-map command. Learn more about extensions.
Manage route map.
Commands
Name | Description | Type | Status |
---|---|---|---|
az network vhub route-map create |
Create a route map. |
Extension | GA |
az network vhub route-map delete |
Delete a route map. |
Extension | GA |
az network vhub route-map get-inbound-routes |
Get the inbound routes configured for the Virtual Hub on a particular connection. |
Extension | GA |
az network vhub route-map get-outbound-routes |
Get the outbound routes configured for the Virtual Hub on a particular connection. |
Extension | GA |
az network vhub route-map list |
List routem maps by resource group. |
Extension | GA |
az network vhub route-map rule |
Manage route map rule. |
Extension | GA |
az network vhub route-map rule add |
Add route map rule. |
Extension | GA |
az network vhub route-map rule delete |
Delete route map rule. |
Extension | GA |
az network vhub route-map rule list |
List route map rules. |
Extension | GA |
az network vhub route-map rule show |
Show route map rule. |
Extension | GA |
az network vhub route-map rule wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az network vhub route-map show |
Show the details of a route map. |
Extension | GA |
az network vhub route-map update |
Update a route map. |
Extension | GA |
az network vhub route-map wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az network vhub route-map create
Create a route map.
az network vhub route-map create --name
--resource-group
--vhub-name
[--inbound-connection]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--outbound-connections]
[--rules]
Examples
Create route map
az network vhub route-map create -n route-map-name -g rg --vhub-name vhub-name
Required Parameters
The name of the RouteMap.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the VirtualHub containing the RouteMap.
Optional Parameters
List of connections which have this RoutMap associated for inbound traffic. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Do not wait for the long-running operation to finish.
List of connections which have this RoutMap associated for outbound traffic. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of RouteMap rules to be applied. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map delete
Delete a route map.
az network vhub route-map delete [--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--vhub-name]
[--yes]
Examples
Delete route map
az network vhub route-map delete -n route-map-name -g rg --vhub-name vhub-name
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the RouteMap.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VirtualHub containing the RouteMap.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map get-inbound-routes
Get the inbound routes configured for the Virtual Hub on a particular connection.
az network vhub route-map get-inbound-routes [--connection-type]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--resource-uri]
[--subscription]
[--vhub-name]
Examples
Get inbound routes
az network vhub route-map get-inbound-routes -g rg --vhub-name vhub-name --connection-type ExpressRouteConnection --resource-uri /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1
Optional Parameters
The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The connection resource whose inbound routes are being requested.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VirtualHub.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map get-outbound-routes
Get the outbound routes configured for the Virtual Hub on a particular connection.
az network vhub route-map get-outbound-routes [--connection-type]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--resource-uri]
[--subscription]
[--vhub-name]
Examples
Get outbound routes
az network vhub route-map get-outbound-routes -g rg --vhub-name vhub-name --connection-type ExpressRouteConnection --resource-uri /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1
Optional Parameters
The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The connection resource whose outbound routes are being requested.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VirtualHub.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map list
List routem maps by resource group.
az network vhub route-map list --resource-group
--vhub-name
Examples
List route maps by resource group
az network vhub route-map list -g rg --vhub-name vhub-name
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the VirtualHub containing the RouteMap.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map show
Show the details of a route map.
az network vhub route-map show [--ids]
[--name]
[--resource-group]
[--subscription]
[--vhub-name]
Examples
Sho a route map
az network vhub route-map show -n route-map-name -g rg --vhub-name vhub-name
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the RouteMap.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VirtualHub containing the RouteMap.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map update
Update a route map.
az network vhub route-map update [--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--inbound-connection]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--outbound-connections]
[--remove]
[--resource-group]
[--rules]
[--set]
[--subscription]
[--vhub-name]
Examples
Update route map
az network vhub route-map update -n route-map-name -g rg --vhub-name vhub-name --rules "[{name:rule1,matchCriteria:[{matchCondition:Contains,routePrefix:[10.0.0.0/8]}],actions:[{type:Add,parameters:[{asPath:[22334]}]}]}]"
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
List of connections which have this RoutMap associated for inbound traffic. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The name of the RouteMap.
Do not wait for the long-running operation to finish.
List of connections which have this RoutMap associated for outbound traffic. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
List of RouteMap rules to be applied. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VirtualHub containing the RouteMap.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network vhub route-map wait
Place the CLI in a waiting state until a condition is met.
az network vhub route-map wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
[--vhub-name]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
The name of the RouteMap.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
The name of the VirtualHub containing the RouteMap.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.