Azure / Azure/azure-cli

Incorrect sample command az network vhub route-table route add

Open
#26,159 1 comment 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Azure CLI Team Network potential-pruning question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Following sample below:
az network vhub route-table route add -n MyRouteTable -g MyResourceGroup --vhub-name MyVhub --destination-type CIDR --destinations "10.4.0.0/16" "10.6.0.0/16" --next-hop-type ResourceId --next-hop /subscriptions/MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/azureFirewalls/MyFirewall
Outputs below error:
Usage error: --next-hop and --route-name must be provided as you are adding route to v3 route table.

Therefore, command is missing the --route-name parameter/input.
---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 7c572a40-459c-4dc0-0664-226f3ce37eaa
* Version Independent ID: b823f80d-9831-bcb3-7baf-766f7c95a0e5
* Content: [az network vhub route-table route](https://learn.microsoft.com/en-us/cli/azure/network/vhub/route-table/route?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/network/vhub/route-table/route.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/network/vhub/route-table/route.yml)
* Service: **virtual-network**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.