App Service Private access over VNet via VPN

Sean K 20 Reputation points
2025-04-15T21:29:26.94+00:00

I'm attempting to connect my App Service application to my VNet such that it is not publicly accessible (no public endpoint) and only traffic from the VNet can access the endpoint. Users should be able to connect to the VNet via P2S or S2S VPN, navigate to the FQDN for the App Service app, and use the application. I've tried a variety of configurations so far without any luck:

  • Access Restrictions with subnets from the VNet: The App service still denies this traffic
  • No Public Access + Private Endpoint: Linked to the app service over private endpoint. Still unable to ping the service (i.e. ping
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,775 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2025-04-16T04:26:19.9733333+00:00

    Sean had issues with DNS lookup for P2S solution, he implemented DNS Resolver linked to the VNET and relevant DNS zones and he was able to resolve the App Service.

    0 comments No comments

  2. G Sree Vidya 2,525 Reputation points Microsoft External Staff Moderator
    2025-04-16T05:11:00.62+00:00

    Hi Sean K

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: App Service Private access over VNet via VPN

    Solution: I needed to add a private DNS resolver to expose the private endpoint FQDNs via the Azure DNS servers. After I added this and configured it properly with an inbound link, I was able to resolve the FQDNs to their private IPs while connected over VPN, and their public IPs when disconnected from VPN.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.