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.