merdeka test
merdeka test

Reputation: 23

Azure App Service integrate to accessible only via vnet gateway VPN

Im Trying to Create a web application that can only accessible via vnet or only network connected to vnet VPN.

I setup vnet and create a Gateway that has point-to-site configured. I setup the Web Service and on the network side i allow the gateway to access the Web. Then i connect to vpn on my local machine but still not able to access the web app.

what i did wrong?

Upvotes: 1

Views: 1239

Answers (1)

PunitSharma
PunitSharma

Reputation: 93

Please check when you create webapp . Under basic configuration sku and Size is not Standard S1 because its not working on standard S1.

Check its if its Standard S1 then its not working. enter image description here

Steps to create.

  1. Create Vnet and under vnet go to subnet. create two more sub net, first subnet and second Gateway subnet.

enter image description here

  1. Create App service plan. make sourer not select Standard S1

enter image description here

enter image description here

  1. Create web app.

enter image description here

  1. At this time its access to publicly.

enter image description here

enter image description here

  1. Under left hand side panel select Networking.

enter image description here

  1. Open private endpoint connections.

enter image description here

enter image description here

after approved click go to app service and click on URL. at this time its not accessible to publicly.

enter image description here

enter image description here

  1. Create a VM, under networking section select virtual network those created.

enter image description here

  1. Go to resource and connect to this VM.

enter image description here

  1. Connect and open web application. its run fine on VM.

enter image description here

More information read these document Use Azure Private Endpoints to Restrict Public Access to WebApps by Neeraj Kumar.

Upvotes: 1

Related Questions