anonymous user, Thanks for the question. If you need to use a custom DNS name, you must add the custom name in your Web App. The custom name must be validated like any custom name, using public DNS resolution. How are accessing? Do you receive any error?
You could With private DNS server (or an Azure DNS private zone), for tests you can modify the host entry of your test machine. -The DNS zone that you need to create is: privatelink.azurewebsites.net. Register the record for your Web App with a A record and the Private Endpoint IP. For example, the name resolution will be:
| Name | Type | Value | Remark |
| mywebapp.azurewebsites.net | CNAME | mywebapp.privatelink.azurewebsites.net | <--Azure creates this entry in Azure Public DNS to point the app service to the privatelink and this is managed by us |
| mywebapp.privatelink.azurewebsites.net | A | 10.10.10.8 | <--You manage this entry in your DNS system to point to your Private Endpoint IP address |