By now, looking at the default URL in the functionappname.azurewebsites.net format of the Azure function app, you might be wondering whether it's possible to have a separate domain instead of the default domain, as your customers might have their own domains. Yes, it's possible to configure a custom domain for function apps. In this recipe, we will learn how to configure one.
Configuring custom domains to Azure Functions
Getting ready
Create a domain with any domain registrars. You can also purchase a domain right from the portal using the Buy Domain button, which is available in the Custom Domains blade:

Once your domain is ready, create the following DNS records using the domain registrar:
- A record
- A CName record...