I'm trying to access some Azure services hosted within my Azure Virtual Network (VNet) that has public access disabled. To connect to these services, I've set up a VPN gateway using a Virtual Machine in the same VNet. I'm using WireGuard to create a tunnel from my laptop to the Azure services. While this method is cost-effective and gets me connected, I keep running into a 403 error when trying to access these services via the Azure Portal. It seems like the portal recognizes the public access policy and doesn't allow the connection. Can anyone help me figure out how to resolve this issue?
3 Answers
You're hitting the wall with that 403 because the Azure Portal is operating outside your private network. Unfortunately, Azure doesn't have a public endpoint for services hosted in a completely private VNet. A potential workaround could be to allow public access for the services you need to manage through the portal and limit that access to just your VNet for security reasons. That way, you'll still be able to manage your services through the portal without exposing them completely.
It sounds like the issue might be that you're accessing the Azure Portal from a public IP instead of the private address assigned through the VPN. The VPN setup might not be routing all your traffic correctly. You might want to check the documentation for your VPN to see how to ensure that traffic is properly tunneled through your VPN connection.
It's tricky because accessing the Azure Portal might not work through your VPN. The portal is a public site while your VNet is designed for private access. If your VNet has no internet access, you won't be able to load the portal, which makes sense given the 403 error you're seeing. You might need to configure your setup to allow at least some public access or set up a route specifically for the Azure Portal. Maybe consider enabling public access for your VNet while restricting it to only your trusted sources.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads