Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Hosted-services / Azure

Set Your GoDaddy Domain Name To Your Azure Website

4.42/5 (9 votes)
25 Mar 2015CPOL2 min read 72.2K  
Assigning domain name to Azure web site

Introduction

Recently, I tried to set the domain name that I bought in GoDaddy to my Azure website. I had to read from several sources in the web to complete this operation properly. Below, I'm sharing my compilation of those sources and the way in which I assigned my domain name to Azure website.

  1. When you deployed your website to Azure, you need to make sure it works. Open the following link: <yoursitename>.azurewebsites.net in the browser and make sure everything is ok.
  2. The next step is to change your web hosting plan mode to one from: Shared, Basic or Standard. You can read more about plans at the following links:

    To change web hosting plan, you need to open SCALE menu from your website page in Azure and change your plan there. The screenshot below shows how I changed my plan to SHARED.

    Image 1

  3. Until you change your hosting plan to one mentioned above, you are not able to use "Manage domains" command from menu at the bottom of the Azure portal. It is not active till the plan is set. Now when we have our plan set, we can click "Manage domains" to add domain name different from the Azure one to our website.

    Image 2

  4. When we click manage domains, the following window will appear:

    Image 3

    Here, I erased the name of my website but this shouldn't affect you at all. Now, when we have this window opened, it is time to go to GoDaddy and complete few actions there.

  5. Login to your account in GoDaddy and click "Manage" button for DOMAINS. Select the domain you want to use and select "DOMAIN DETAILS".

    Image 4

  6. In domains details, select "DNS ZONE FILE" and change\add 4 parameters there:
    1. A(Host) change "Points To"value there to IP address from the window in step 4
    2. In Cname (Alias), I had to add averify parameter and set its "Point To" value to my Azure site name
    3. In Cname (Alias) I had to add averify.www parameter and set its "Point To" value to my Azure site name
    4. In Cname (Alias) I changed www parameter and set its "Point To" value to my Azure site name

    Image 5

  7. When all these steps have been done, go back to windows "Manage custom domains" from step 4 and there, set your domain name from GoDaddy. Press ok, wait for some short time and try to use your domain new name to open your Azure web site content. It should work.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)