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 achieve transit routing via VPN Connections between Azure Site and OnPrem via another Azure Site.
Technically, this should be possible.
Method 1: BGP
Using a S2S for connecting two VPN Gateways in Azure would be an overkill.
- VNet-to-Vnet will work exactly as desires as long as all the two connections, Vnet1-to-OnPrem S2S and Vnet1-to-Vnet2 VPN Connection both have BGP enabled.
- I see the documentation you have shared for Vnet-to-Vnet does not configure BGP by default.
- I would recommend you to enable BGP in all the connections and give it a try.
Please note : This configuration would not work if you do not enable BGP even with S2S between the VNets.
Your exact requirement is documented here
Method2: Adding the OnPrem Address range in LNG representing Transit VPN Gateway.
Note : Here, VPN Connection between the VPN Gateways should be a S2S and not Vnet-to-Vnet.
First, establish the VPN connection between VPN Gateways
-
- Note :
- The S2S Connection object is created within the subscription (VPNGW and LNG are in same subscription)
- Address range of each LNG comes from the other VPNGW (Vnet)
- Once the connection is successful, you can add the address range of the Onprem in the LNG representing the transit Gateway.
-
- This should enable routing to the Onprem.
You have also added some additional configurations for an end-to-end connectivity : https://medium.com/@andragabr/connect-from-onprem-to-azure-vnets-across-subscriptions-1b89306d15ef
Thanks for your continued contribution on Q&A and appreciate much for taking the time to work with us
Cheers
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.