Introduction
You can add a custom domain to your web app if you want to personalize it with a domain name other than "azurewebsites.net". Additionally, App Service Managed Certificates offers free certificates that will safeguard your custom domain and give your consumers’ confidence to browse your website.
In this article, we will learn how to map an external domain name to Azure.
Step 1
Before adding the DNS Records, we need the IP Address for the App Service. Go to Custom Domains under Settings and copy the IP Address.
Step 2
For adding the CNAME Record we need the App Service URL. To copy the App Service URL, go to App Service and copy the URL.
Step 3
Go to the DNS Server and click + Record set.
Step 4
In the Add record set, select the type as A and paste the IP Address for our App Service we have already copied the IP Address in the Step – 01. We can leave Name as blank. And click OK.
Step 5
In the Add record set, enter the name as www, select the type as CNAME and paste the Alias (URL Name) for our App Service we have already copied the URL Name in Step 2. And click OK.
Step 6
We have successfully added the DNS Records.
Step 7
Go to your web app and click on Custom domains. Then click on + Add custom domain.
Step 8
Enter your domain and click Validate.
Step 9
Then click on Add custom domain.
Step 9
After adding the custom domain, you will be able to see the added custom domain under Assigned custom domains list.
Summary
In this article, we learned how to map an external domain name to Azure. Please use comment box if you have any questions.