Configuring A Custom Domain Name In Azure Web App

Before reading this article, please go through the following article that will help you understand more easily.

When we are creating a web application using Windows Azure it provides a subdomain for the created web application, which is .azurewebsites.net.

For accessing our created web application use the following URL: http://<appname>.azurewebsites.net

Now custom domain provides a domain name such as website_name.in or in any other extensions such as .com, .online etc.

To associate the custom domain with your Azure web app the following are the credentials needed to complete this article.

  • Microsoft Azure subscription is needed if you don’t have an azure account click here to create an account.
  • Azure web app is mandatory
  • Domain from Godaddy

Let’s get started with the steps to follow in the Godaddy dashboard

To configure your custom domain with a web app, we need to add a new entry in the DNS table for your custom domain by using tools provided by GoDaddy.

Login into your Godaddy.com then My Domains dashboard will appear then click settings button as shown below. From that Manage DNS.

azure

Once Manage DNS dashboard appears, scroll down and click add button to add CNAME, A Name, and TXT.

azure

azure

Add option appears then select type as ‘A’ and Hostname as ‘@’ and Point to your IP Address available in custom domains dashboard in Azure and click save button.

azure

Again click Add button and select type as ‘CNAME’ and Hostname with your web app;  name the URL as shown below and point to value as ‘@’ and click save button.

azure

Again click Add button and select type as ‘TXT’ and Hostname as ‘@’ TXT value as your web app name URL and click save button.

Then move to Azure to validate your domain name

Login to your azure management portal by clicking

Open your web app and click Custom domains from the bottom of the page as shown below

azure

In the custom domain tab, you will be able to see virtual IP address as shown below and make a note of it.

azure

Click Add Hostname and the following screenshot appears as shown below.

azure

In ADD Domain Name wizard type your domain name and click validate option; it takes sometimes to validate your domain name and click Add Hostname.

azure

azure

You receive notification when the hostname is added to your web app. Now open web app and you will be able to find your Added domain name in URL of the web app as shown below.

azure

 
 
 

To access your web app directly we are able to use Webapp.azurewebsites.net which is provided by Azure or we are able to use our own domain which is mapped instead of .azurewebsites.net.
 
Still, we are able to use both the URLs to access the same web application.

Summary

In this article, we will see about configuring the custom domain name in Azure App Service (Purchased directly from GoDaddy). Thanks for reading this article.


Similar Articles