vwan route map not working when multiple route replace maps with comma seperated

Martin Kallukalam 465 Reputation points
2025-05-25T19:47:02.58+00:00

My configuration (POC) is like this. I have a VWAN with 2 VNETs 10.30.96.0/19 10.30.224.0/19

A P2S VPN with address pool 172.24.10.0/24

My Windows Laptop with Azure VPN client configured using downloaded hub vpn profile

I am testing route map configuration with various scenarios
scenario #1
I add below route map rule and attach it to P2S VPN

I have not added a match condition which means the condition will match on any route.
User's image

I want basically to replace all routes published to P2S and replace it with 10.40.96.0/19,10.41.96.0/19 (don't ask me why. Because I am testing route map and its reliability and functionality feature).

Problem #1 When I have two routes comma separated, only the first route takes effect.
The 2nd one is ignored. This is not the expected behavior as per documentation.

User's image

Problem #2
regardless of route map, both VNET routes are published to VPN client
Expected behavior is the two VNET routes should be dropped and replaced with 2 routes 10.40.96.0/19 and 10.41.96.0/19, while it is not what is seen in VPN routes

See attached pic
User's image

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

Accepted answer
  1. Anonymous
    2025-05-27T07:29:43.6866667+00:00

    Hi @Martin Kallukalam,

    The route map only supports summary routes. You can match on multiple specific routes and summarize them into a single route. The reason why the first route worked is because it was the first one evaluated. However, you cannot create multiple summary routes within a single route map rule.

    User's image

    Route maps allow you to perform route aggregation, route filtering, and modify BGP attributes such as AS-PATH and Community, enabling fine-grained control over route selection and propagation. Route maps can be configured on the following resources and settings.

    If a route map has multiple modifications configured in a rule, all configured actions are applied on the route. So, the last modification shows up in the dashboard as the route keeps replacing the prefixes till the last one and if you create 2 route map rules with the Replace action without any condition and keep processing the rules without terminating them, then it will modify till the end and the last modification will show up in the dashboard.

    I also tested the same in my lab and got the same expected result, so this is the expected behavior.

    User's image

    Output:User's image

    Refer: Why use Route-maps?

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.