What does the routing-weight parameter do when configuring an Azure Virtual WAN VPN Connection?

Henry Gelderbloem 0 Reputation points
2025-03-21T17:01:33.0066667+00:00

When configuring a VPN Gateway connection, either via Azure CLI, Bicep, or Terraform, it is possible to configure the routing weight. I have not found any documentation as to what this does?

I was hoping that it would allow me to configure a preferred connection when I have multiple connections to the same site configure with BGP.

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
{count} votes

1 answer

Sort by: Most helpful
  1. rvinnakota 4,835 Reputation points Moderator
    2025-03-21T21:43:42.95+00:00

    Hi @Henry Gelderbloem

    Yes, you can configure routing weight in the VPN Gateway via Azure CLI.

    User's image

    Refer this document: https://learn.microsoft.com/en-us/cli/azure/network/vpn-connection?view=azure-cli-latest#az-network-vpn-connection-update


    Hope the above answer helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.