Click here to Skip to main content
15,122,083 members
Articles / Hosted Services / Azure
Article
Posted 27 May 2017

Tagged as

Stats

8.4K views
5 bookmarked

Azure Content Delivery Network (CDN) – A Walk Though

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
27 May 2017MIT5 min read
This post is going to walk through about Azure Content Delivery Network (CDN).

Table of contents

Introduction

This post is going to walkthrough about Azure Content Delivery Network (CDN). Before we go deep into Azure CDN, it is recommended that you must know What is a CDN and What is the use of a CDN? So let’s go and try to answer those.

What is a CDN

In our day to day life, we all open websites many times, how fast you area getting responses from those sites? Some might be loading very fast, others may be slow, have you ever thought why there is such a huge delay in giving response? There are a lot of possible reasons behind it, here we are going to discuss about one reason and a solution that we can do, that is CDN. With the help of a CDN, we can reduce the physical distance between the user and our website server, and we can cache our images and other contents, so that the contents can be serced quickly.

What is a Azure CDN

Azure CDN, caches all the static contents that you have in your website, in different locations. Using a Azure CDN, can reduce the number of riund trips for getting the required contents, hence we get better performance and user experience.

Image 1

Figure 1: cdn-overview

Image Courtesy: Microsoft Docs

Advantages of having a Azure CDN are listed below.

  • Better performance for your apps and services
  • Global distributed network
  • Highly scalable infrastructure
  • Active redundancy and failover
  • High reliability
  • Robust security

Background

I own a personal website(http://sibeeshpassion.com/) and I wanted to make sure the end users of my site, get a better experience, creating a CDN is the first step towards it. And in this article I am just sharing how a Azure CDN can help in that. I hope you will like this.

Creating a Azure CDN

To create a CDN, you must login to https://portal.azure.com/ and then click on the New icon.

Image 2

Figure 2: Azure Create New Resource

Now, search for CDN.

Image 3

Figure 3: Search for CDN

Our next step is to create the CDN profile, to do so, you must fill the form according to your preferences.

Image 4

Figure 4: Create CDN Profile

Please be sure that you are checking your price tier and, as per your needs, you can select one. Here I am selecting S1 Standard Verizon.

Image 5

Figure 5: Choose the Pricing Tier

As we have created our CDN Profile, now it is time to create an End Point. Navigate to your CDN profile and click on the End Point.

Image 6

Figure 6: Endpoint Option in CDN

You must add the required data in the upcoming Add and end point form. Here, the name is the name of your CDN end point, that will be created as .azureedge.net.

Once you are finished, you can see that your CDN end point is in running.

Image 7

Figure 7: CDN Endpoint Running

Creating a Custom Domain

We have successfully created an Azure CDN, but is that really over? For some people it is, but for others it is not. Let’s see why? We have an option to add a custom domain for our CDN, that’s cool right? If you noticed well, we have created a CDN as https://cdn-sp.azureedge.net but it would be great we can get one as https://cdn.sibeeshpassion.com right?. So here in this step, we are going to see how we can get a custom domain for our CDN.

To start with, login to your Azure Portal and browse for the CDN profile we have just created and click on the end point to which you want to map your custom domain.

Image 8

Custom Domain Option in CDN

Now login to your Domain Registrar’s website and navigate to DNS records (If you could not find DNS records, search for Domain Name or Name Server Management). Here I am using BigRocks, and the screenshots may be different for other service providers.

Image 9

Figure 8: Manage DNS in BigRock

Navigate to the CNAME creation page, please check in advanced settings if you could not find it in default settings page. And fill the required fields.

Image 10

Figure 9: CNAME Creation in DNS Window

Now, go back to azure portal, and give the custom domain name, we created in the DNS management settings(cdn.sibeeshpassion.com), in the Add a custom domain form.

Image 11

Figure 10: Adding Custom Hostname

Click Add. If everything goes fine, you will get a notification as preceding.

Image 12

Figure 11: Success Notification Custom Domain CDN

Please be noted that, the verification process may take few minutes or hours. If you are sure that the CNAME configuration is correct, please wait some more time and check if you are getting any error.

That’s all for today, I will come with another article which explore Azure CDN more. Till then, bye.

Conclusion

Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.

Your turn. What do you think?

A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.

Kindest Regards
Sibeesh Venu

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Sibeesh Passion
Software Developer
Germany Germany
I am Sibeesh Venu, an engineer by profession and writer by passion. I’m neither an expert nor a guru. I have been awarded Microsoft MVP 3 times, C# Corner MVP 5 times, DZone MVB. I always love to learn new technologies, and I strongly believe that the one who stops learning is old.

My Blog: Sibeesh Passion
My Website: Sibeesh Venu

Comments and Discussions

 
-- There are no messages in this forum --