How to Set App Service - Custom Domain for Private Endpoint's Domain (e.g. privatelink.azurewebsites.net)

Furkan A 10 Reputation points
2023-01-21T01:09:51.0666667+00:00

Hi,

As you know if your custom domain doesn't exists on the listed custom domains of web app service your app won't respond and returns 404 (as shown in the below SS).

I wonder, if there is any way to add a custom domain from Private DNS Zone without having DNS resolver or any other service. Also, private link works if I map the VNet ip address to one of the domains listed under custom domains but not for any Private Zone ones.

One note: NsLookup result returns the public ip address (20.x.x.x) of the web app service.

User's image

Thanks

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,256 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,258 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Roderick Bant 2,051 Reputation points
    2023-01-21T15:47:35.08+00:00

    Hi, thank you for your question at Q&A. I understand that you are running into issues connecting a custom domain to an App Service using a Private Endpoint. There is some documentation on this scenario here.

    In short: you should use the regular procedure for validating the domain via internet DNS and then make sure you have A-records in the DNS solution tied to the VNET/private network.

    1 person found this answer helpful.
    0 comments No comments

  2. Chukwudi Anya 0 Reputation points
    2024-06-17T18:35:54.6833333+00:00
    0 comments No comments