Azure Virtual Private Network Gateway - modify list of advertised-routes

UzarPiotr 26 Reputation points
2021-01-31T19:07:57.117+00:00

Hello

How to modify list of advertised routes at vpn-gateway (effect of executing command list-advertised-routes
(az network vnet-gateway list-advertised-routes ....)

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,585 questions
0 comments No comments
{count} votes

Accepted answer
  1. SaiKishor-MSFT 17,236 Reputation points
    2021-02-03T21:34:35.48+00:00

    anonymous user

    1. Routes advertised from on-prem to Azure VPN Gateway. On-prem can just stop advertising some IP ranges.
    2. Routes advertised from Azure to On-prem. This is not possible to change.

    for #2, the workaround is to have the specific address range in a peered VNET and not configure "use remove gateway"

    • Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

2 additional answers

Sort by: Most helpful
  1. Bob Johnson 1 Reputation point
    2021-02-03T19:26:12.7+00:00
    0 comments No comments

  2. UzarPiotr 26 Reputation points
    2021-02-03T19:45:23.853+00:00

    To some extend ;) I have learned that there is no possiblity to modify advertised routing, this is why I had to create two different virtual network gateways, and segregate the traffic on peering.

    0 comments No comments

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.