Azure Storage Account - Create A CDN Profile

Please go through the following articles to learn more about Storage Account.

  1. Azure Storage – Basics
  2. Azure Resource Manage Template: Create A Storage Account Using Blank Template
  3. Create a Storage Account and learn how to access It Programmatically
  4. Azure Storage - Creating Blob Container Using Storage Client Library
  5. Azure Storage Account Why Two Access Keys
  6. Azure Storage Account – Create Block Blob Programmatically using C#.Net

Introduction

In general, we store all the static assets like Images, JS files, CSS files, static documents - like PDFs, Word Documents, Videos all in different folders within the website root folder. The Web Server is responsible for storing and serving these static assets to the end user.

If we can leverage Azure Storage for storing all these static content, it could dramatically improve the performance of the website as you are delegating the job of serving the assets to Azure Storage. In those cases, the Web Server will have more room to serve the dynamic content.

We can further improve the performance by integrating the Blob Storage account with CDN (Content Delivery Network) because CDN caches the static assets in the edge servers that are located to nearest possible location to the end user.

What is Content Delivery Network?

The Azure Content Delivery Network (CDN) caches static web content at strategically placed locations to provide maximum throughput for delivering content to users. The CDN offers developers a global solution for delivering high-bandwidth content by caching the content at physical nodes across the world. Below is the small diagram that shows how the CDN works.

Ref - https://docs.microsoft.com/en-us/azure/cdn/cdn-overview

In this article, we will learn how to create CDN. Below are the steps for creating the CDN.

  • Create a CDN profile
    This is just a collection of CDN end-points. 

    • As of this writing, each subscription can contain 8 CDN profiles.

  • Create an End Point
    Each end-point could be associated with one Storage Account

    • As of this writing, each profile can contain 10 CDN end-points.

Navigate to Azure Management Portal and select CDN, as shown below.



Clicking on the CDN will take you to the following CDN profile blade where you can provide all the details for creating the new CDN profile.


Note

Please note that unlike the other Azure Services, CDN profiles are not associated with any specific location. The CDN related Edge Servers are spread across the globe and will keep expanding. You might be thinking why should we choose the Resource Group location in such case? All the meta data related to the CDN profile and its End-Points will be stored in a Data Center located in the Resource Group Location. The Resource Group Location will automatically be taken from the Storage Account location. You can review the same in the final screen capture of this article.

Clicking on the "Pricing tier" will take you to the following blade.



As of this writing, Azure supports the following two CDN vendors,

  • Verizon
  • Akamai

For this example, I have chosen S2 Standard Akamai pricing tier. Once you choose the pricing tier based on your requirement, click on "Select" button as shown in the above screen.

Below is how the "Create CDN Profile" blade looks after you choose the Pricing tier.


Click on "Create" button to create the CDN profile. We have successfully created a CDN profile, as shown below.


In the next article, we will learn how to create and associate CDN end-points to our Storage Accounts.

Summary

In this article, we have learnt the following,

  • What CDN is
  • How CDN works
  • Steps to create CDN
  • Creating a CDN profile using Azure Management Portal
  • Different CND pricing tiers

Hope, you enjoyed reading the article. Your feedback is appreciated.


Similar Articles