Hi @PhilippGerber-6516,
Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to know where to configure your custom BGP routes.
Azure can only advertise the VNet address range (along with peered Vnets) via BGP.
For a custom Range from OnPremises side
- You should configure your OnPremises VPN device to advertise the custom BGP routes.
- Any Route-based VPN Gateway from Azure end would accept the ranges coming from OnPremises via BGP.
For a custom Range from Azure side
As stated, a Route-based VPN gateway with BGP enabled would only advertise the VNet address range (along with peered Vnets) via BGP.
- A Policy-based Gateway can support this.
- Or a Route-based VPN gateway without BGP and "Use policy based traffic selector" enabled, gives you the flexibility to add your custom routes. (this makes the connection similiar to a Policy-based gateway)
Refer :
- https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq#can-i-specify-my-own-policy-based-traffic-selectors
- https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-connect-multiple-policybased-rm-ps#azure-support-for-policy-based-vpn
-
Feel free to let us know should you have any additional questions on this, I shall be glad to continue our discussion.
Thanks,
Kapil
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.
-