简体   繁体   中英

How do I access an azure app service without public access through a virtual network?

I've created an app service that is closed to public access with VNet integration enabled.

I've connected it to the virtual.network and connected to the VPN for that.network.

When I try to open the site on my browser I get the following:

在此处输入图像描述

What step did I miss?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM