Introduction

This article will help you to work on Azure Storage by adding CDN (Content Delivery Network) to access data with high availability.

Note

Please look at the previous article to understand about Content Delivery Network in detail.

Here are a few links that you should go through before adding CDN for Azure storage:

Follow the steps below now.

Step 1: Creating a Container with Blob access level.

Login to the Azure portal with your Azure account credentials on which the storage account with containers and blobs was created before.

Azure Storage

Create a new portal on the Azure storage account which was created before and create a new container with public blob access. On your Azure storage account click on “Blobs” followed up by the “+ Container” button to create the container.

Azure Storage

Azure Storage

Name the blob with some meaningful name and select the public access level as “Blob” so that any anonymous person can have read access for blobs alone.

Azure Storage

Click on “Ok” to create the Container.

Azure Storage

Step 2: Uploading a file to the new container.

In the new container, upload a file that needs to be put in front of a CDN. Select the Container and click on upload to add the files.

Azure Storage

Select any file from your hard disk and click on “upload” to upload the file.

Azure Storage

The file has been uploaded towards the container.

Azure Storage

Step 3: Creating an Azure CDN

On the Azure portal under all resources, find for CDN and select the same. Click on create to fill in the details.

Azure Storage

Click on “Create” to create the CDN.

Azure Storage

Azure Storage

Azure Storage

Azure Storage

And now the CDN on the Azure portal has been deployed.

Azure Storage

Step 4: Adding an Endpoint to the Azure CDN

Once the CDN is created, you need to add an endpoint to it as shown, remember Endpoint is the new URL for your content.

Azure Storage

Endpoint name should be a unique one and enter the origin type as “Storage”.

Azure Storage

Select the origin host name

Azure Storage

Accessing the blob file through the standard URL

After creating an endpoint you can access the file through both the standard URL and the endpoint URL; here you can access through standard URL to check.

Accessing the blob file through the CDN endpoint URL

You can now access the blob file through the new endpoint URL of the CDN, which you have put in front of the storage account.

Here is the endpoint which has been created, and you can use the endpoint address for accessing the azure storage.

Azure Storage

You can copy the storage account name as shown below,

Azure Storage

Summary

Here we come to the end of the discussion of Azure storage, by which we have implemented a CDN on an Azure storage account.