Tuesday 30 March 2021

Connect your Azure App Service to Custom Domain


In this article, we will learn how we can add a custom domain to our website. I hope you are already aware of how to publish the website to Azure. Once you publish the website on azure you will get a URL like xxx.azurewebsites.net. Now you want your domain name let’s say www.abc.com to open the website xxx.azurewebsites.net that is hosted on Azure.


Step 1: Ensure your website is published on a minimum B1 Plan because the Custom Domain feature is not available on Free Plan (F1)









Step 2: Go to App Services -> Custom Domains, Click on it.
























Step 3: Click on Add Custom Domain Button

Step 4: Enter your custom domain e.g. (www.abc.com) and click validate button.              















Step 5: It will ask you to select either A record or CNAME. You can choose any one option. You need to prove the domain ownership. In this article, we will use A record.









Step 6: Select A record and scroll down, it will display Type txt and A value. We need to enter these values into our domain provider DNS Settings.























Step 7: Open the website of your domain provider. Let’s say you have purchased the domain from GoDaddy or BigRock. Open their website and go to My Products.


Step 8: Click on your domain and go to the DNS section.
















Step 9: Update A Type and Txt Value here.




















Wait for 10-15 mins and you can see your website is up and running.

Now when you will open abc.com it will open the same website that is deployed to Azure. This is all about this article. I hope you like it.




2 comments:

  1. The information you have given is knowledgeable and up to the mark. However, it is a pretty hard job but your post has managed to settle the doubts of many young folks. So keep the work going. Thanks a lot.
    If you have knowledge regardingData science and analytics roles, kindly write for the same as it would be a great help for me.

    ReplyDelete

How to find the reason of HTTP Error 500.30 - ASP.NET Core app failed to start in Azure App Service

HTTP Error 500.30 - The ASP.NET Core app failed to start If your web app is throwing an error HTTP error 500.30 then how to find the root ca...