I tried to reproduce the same in my environment and got the results like below:
I have created a virtual.network, virtual.network gateway, and created web app service connected to vpn like below:
Make sure to configure a private endpoint in web app like below:
In your web app ->.networking -> private endpoint.
Add private endpoint integrated with private DNS zone.
In your private endpoint under settings -> DNS configuration you can check private endpoint connection like below:
Now, when I try to test my web app I got the same Error 403 as it considered a pubic.network.
When I connected with my VPN client to the Azure.network got results successfully like below:
Reference :
How to Use Azure Private Endpoints to Restrict Public Access to WebApps (varonis.com) by Neeraj kumar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.