Trying to add a custom domain name to the private end point functionapp, but it is throwing following error

Mohamed Arif Gangavaram 25 Reputation points
2025-01-17T10:56:07.8433333+00:00

i have a function app in private end point with the default domain name functionappducth-001.azurewebsites.net. I have a private DNS zone with the name privatelink.azurewebsites.net which is linked to private end point vnet. now i want to add the func.privatelink.azurewebsites.net this subdomain to my function app, i have added cname record and txt records in the private dns zone but it is getting
Validation failed because the expected DNS records are not found: The host name func.privatelink.azurewebsites.net is invalid. Try checking the hostname records entered with your domain provider. Note that it can take up to 48 hours for records changes to take effect.

No matching TXT Record was found.

I have added my private dns zone record sets.. kindly help me
User's image

User's image

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
720 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,351 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Loknath Mahali 0 Reputation points Microsoft Vendor
    2025-01-23T16:56:06.71+00:00

    Hello @Mohamed Arif Gangavaram,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    It seems like you are trying to add a subdomain to your function app using a private DNS zone. I can help you with that.

    Based on the error message you provided, it seems like there might be an issue with the hostname records you entered. The hostname "func.privatelink.azurewebsites.net" is not a valid hostname.

    To add a subdomain to your function app, you need to create a CNAME record in your private DNS zone that maps the subdomain to the default domain name of your function app. For example, if your function app's default domain name is "functionappducth-001.azurewebsites.net" and you want to add the subdomain "func.privatelink.azurewebsites.net", you would create a CNAME record in your private DNS zone with the following values:

    • Name: func
    • Type: CNAME
    • TTL: 3600
    • Alias: functionappducth-001.azurewebsites.net.

    Make sure to include the period at the end of the alias value.

    Once you have created the CNAME record in your private DNS zone, it may take up to 48 hours for the changes to take effect. After that, you should be able to access your function app using the subdomain "func.privatelink.azurewebsites.net".

    Let me know if you have any further questions or if there's anything else I can help you with.


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.