Virtual Network Gateway - Additional routes to advertise

GS 25 Reputation points
2025-03-18T08:29:17.2433333+00:00

In Microsoft Azure, trying to set up "additional routes to advertise" section under Point to Site VPN connection, it seems i cannot add more than one route!.. Tried with commas, semicolon, space, no space but nothing... so what are the "routes" if it is only one route!..

Thanks in advance!

Screenshot 2025-03-18 102814

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,786 questions
0 comments No comments
{count} votes

Accepted answer
  1. chrischin 915 Reputation points Microsoft Employee
    2025-03-18T15:15:27.2366667+00:00

    Try this in Cloud Shell:

    Set-AzVirtualNetworkGateway -VirtualNetworkGateway $gw -CustomRoute x.x.x.x/xx , y.y.y.y/yy
    

    Here is the full reference: https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-p2s-advertise-custom-routes#code-try-2

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Ganesh Patapati 6,915 Reputation points Microsoft External Staff Moderator
    2025-03-18T17:20:52.49+00:00

    Hello @GS

    In addition to chrischin response, I just want to add few more points.

    Advertising multiple custom routes on Azure P2S VPN is currently available via Azure PowerShell. The Azure portal interface is designed for simplicity and may not support advanced configurations like adding multiple routes at once.

    PowerShell, on the other hand, provides more flexibility and is ideal for bulk operations or complex setups.

    If you wish you may upvote the feedback in the below forum requesting this feature. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    Feedback Forum: https://feedback.azure.com/d365community


    I hope this has been helpful!

    Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.Accepted answer


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.