r/AZURE•
shortrug

Could use advice on routing outbound traffic from azure web app through virtual network gateway

Question

Hi all - I ended up in a bit of a pickle working on a solution in azure that's a bit beyond my networking capabilities. Any tips here would be amazing.

Currently I have a site-to-site vpn set up between a virtual network in my azure and an on premise network of a partner, so I don't have access to modify the configuration of the gateway on their on-prem end. They have it set up so that I have a /32 prefix that they NAT on their end - so I have to come through the gateway with that single private IP address to access resources on their side.

The issue is that the application that's trying to access those resources through the VPN is running in an azure web app, which I can't explicitly assign a private IP address to. I can use VNET integration to put it in a subnet, but I don't think there's a way to guarantee it has the private IP address I need it to. And I don't think I can use any sort of nat gateway to translate its outbound traffic to a private IP address either, but correct me if I'm wrong.

I also looked into using private endpoints thinking maybe I could assign the private endpoint that private IP address and have the web app access it that way, but it doesn't look like you can have a virtual network gateway as the protected resourced for a private endpoint.

Is there something simple I'm missing here? I could just provision a virtual machine so that I can assign the static private IP address I need but there are quite a few reasons I'd like to avoid going down that road if possible.

Seriously, thanks in advance for any guidance.

Posted Apr 4, 2023, 3:52 PM UTC

38
Loading comments…