<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Azure CDN &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/azure-cdn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Fri, 14 Aug 2020 09:51:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>Azure CDN &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Azure CDN with Azure Web App &#8211; Access to Font at CDN has been Blocked by CORS Policy</title>
		<link>https://www.sibeeshpassion.com/azure-cdn-with-azure-web-app-access-to-font-at-cdn-has-been-blocked-by-cors-policy/</link>
					<comments>https://www.sibeeshpassion.com/azure-cdn-with-azure-web-app-access-to-font-at-cdn-has-been-blocked-by-cors-policy/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 14 Aug 2020 09:36:34 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure CDN]]></category>
		<category><![CDATA[Azure CDN WordPress CORS issue]]></category>
		<category><![CDATA[Azure CORS issue]]></category>
		<category><![CDATA[Azure web app]]></category>
		<category><![CDATA[CORS]]></category>
		<category><![CDATA[CORS with Azure CDN]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=14177</guid>

					<description><![CDATA[[toc] Introduction Working with Azure web app is always fun. I was facing a CORS issue in my WordPress web application recently. Here in this post, I am going to share with you the solution that helped me. I was using Azure CDN to serve all my files and all the files were loading fine except the fonts and icons because I was getting the CORS issue. Here is the fix. Preceding is the image of my browser console, where you can see the error clearly. Here is how my blog looked like when the icons were not loading. Fix [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>[toc]</p>



<h2 class="wp-block-heading">Introduction</h2>



<p>Working with Azure web app is always fun. I was facing a CORS issue in my WordPress web application recently. Here in this post, I am going to share with you the solution that helped me. I was using Azure CDN to serve all my files and all the files were loading fine except the fonts and icons because I was getting the CORS issue. Here is the fix. Preceding is the image of my browser console, where you can see the error clearly.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="491" src="/wp-content/uploads/2020/08/CORS-error-in-broswser-console-1024x491.png" alt="" class="wp-image-14178" srcset="/wp-content/uploads/2020/08/CORS-error-in-broswser-console-1024x491.png 1024w, /wp-content/uploads/2020/08/CORS-error-in-broswser-console-300x144.png 300w, /wp-content/uploads/2020/08/CORS-error-in-broswser-console-768x368.png 768w, /wp-content/uploads/2020/08/CORS-error-in-broswser-console-425x204.png 425w, /wp-content/uploads/2020/08/CORS-error-in-broswser-console.png 1064w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>CORS issue</figcaption></figure>



<p>Here is how my blog looked like when the icons were not loading.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="785" height="258" src="/wp-content/uploads/2020/08/Missing-icons.png" alt="" class="wp-image-14181" srcset="/wp-content/uploads/2020/08/Missing-icons.png 785w, /wp-content/uploads/2020/08/Missing-icons-300x99.png 300w, /wp-content/uploads/2020/08/Missing-icons-768x252.png 768w, /wp-content/uploads/2020/08/Missing-icons-425x140.png 425w" sizes="(max-width: 785px) 100vw, 785px" /><figcaption>Missing icons</figcaption></figure>



<h2 class="wp-block-heading">Fix for &#8220;Acces to font CROS policy issue&#8221;</h2>



<p>The first thing to do is to allow requests from all the origins, we can easily do this in Azure web application. Just login to your Azure portal, and go to your Azure web application. Click on the CORS menu under API and * as the allowed origin. </p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="848" src="/wp-content/uploads/2020/08/Allow-origins-in-Azure-web-app-1024x848.png" alt="" class="wp-image-14179" srcset="/wp-content/uploads/2020/08/Allow-origins-in-Azure-web-app-1024x848.png 1024w, /wp-content/uploads/2020/08/Allow-origins-in-Azure-web-app-300x249.png 300w, /wp-content/uploads/2020/08/Allow-origins-in-Azure-web-app-768x636.png 768w, /wp-content/uploads/2020/08/Allow-origins-in-Azure-web-app-425x352.png 425w, /wp-content/uploads/2020/08/Allow-origins-in-Azure-web-app.png 1137w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Allow origins in Azure web app</figcaption></figure>



<p>When you are done, just click on the Save button. </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>By default files with .woff2, .woff, and .ttf extensions are not served by IIS in Azure App Service.</p><cite>Azure app service IIS config</cite></blockquote>



<p>Now we should edit our web.config file with the configuration for these files. The web.config file will be present in the root folder where your index file is. You can use windows explorer to FTP to get this file or use FTP clients such as FileZilla or use the deployment tool Kudu in the Azure portal.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="924" height="393" src="/wp-content/uploads/2020/08/Web.config-in-KUDU.png" alt="" class="wp-image-14180" srcset="/wp-content/uploads/2020/08/Web.config-in-KUDU.png 924w, /wp-content/uploads/2020/08/Web.config-in-KUDU-300x128.png 300w, /wp-content/uploads/2020/08/Web.config-in-KUDU-768x327.png 768w, /wp-content/uploads/2020/08/Web.config-in-KUDU-425x181.png 425w" sizes="(max-width: 924px) 100vw, 924px" /></figure>



<p> There should be separate configuration entries for each font file types. We will add these configurations in the system.webServer tag which is the child tag of configuration tag. </p>



<script src="https://gist.github.com/SibeeshVenu/a4bc9422db0ba1be7423b97beabf330d.js"></script>



<p>You can also do this by adding the extension called &#8220;Enable Static Web Fonts&#8221;. To add an extension, click on the Extensions menu from the left pan and then click on +Add.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="893" height="401" src="/wp-content/uploads/2020/08/Add-extension-in-Azure-app.png" alt="" class="wp-image-14182" srcset="/wp-content/uploads/2020/08/Add-extension-in-Azure-app.png 893w, /wp-content/uploads/2020/08/Add-extension-in-Azure-app-300x135.png 300w, /wp-content/uploads/2020/08/Add-extension-in-Azure-app-768x345.png 768w, /wp-content/uploads/2020/08/Add-extension-in-Azure-app-420x190.png 420w, /wp-content/uploads/2020/08/Add-extension-in-Azure-app-425x191.png 425w" sizes="(max-width: 893px) 100vw, 893px" /><figcaption>Add extension in Azure app</figcaption></figure>



<p>Now click on the &#8220;Choose extension&#8221; option and select the &#8220;Enable Static Web Fonts&#8221; extension.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1023" height="381" src="/wp-content/uploads/2020/08/Enable-static-web-fonts-extension.png" alt="" class="wp-image-14183" srcset="/wp-content/uploads/2020/08/Enable-static-web-fonts-extension.png 1023w, /wp-content/uploads/2020/08/Enable-static-web-fonts-extension-300x112.png 300w, /wp-content/uploads/2020/08/Enable-static-web-fonts-extension-768x286.png 768w, /wp-content/uploads/2020/08/Enable-static-web-fonts-extension-425x158.png 425w" sizes="(max-width: 1023px) 100vw, 1023px" /><figcaption>Enable static web fonts extension</figcaption></figure>



<p>Now accept the legal terms and click OK.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>When you are done configuring, just visit your azure web application, you should now see that all the fonts, icons are loaded.</p>



<h2 class="wp-block-heading">About the Author</h2>



<p>I am yet another developer who is passionate about writing and video creation. I have written close to 500 blogs on my&nbsp;<a href="https://sibeeshpassion.com/" target="_blank" rel="noreferrer noopener">blog</a>. And I upload videos on my YouTube channels&nbsp;<a href="https://www.youtube.com/njanorumalayali" target="_blank" rel="noreferrer noopener">Njan Oru Malayali</a>&nbsp;and&nbsp;<a href="https://www.youtube.com/SibeeshPassion" target="_blank" rel="noreferrer noopener">Sibeesh Passion</a>. Please feel free to follow me.</p>



<ul class="wp-block-list"><li><a href="https://github.com/SibeeshVenu">GitHub</a></li><li><a href="https://medium.com/@sibeeshvenu">medium</a></li><li><a href="https://twitter.com/sibeeshvenu">Twitter</a></li></ul>



<h2 class="wp-block-heading">Your turn. What do you think?</h2>



<p>Thanks a lot for reading. Did I miss anything that you may think which is needed in this article? Could you find this post useful? Kindly do not forget to share your feedback.</p>



<p>Kindest Regards<br>Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/azure-cdn-with-azure-web-app-access-to-font-at-cdn-has-been-blocked-by-cors-policy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Upload Contents To Azure Container, CDN in WordPress Folder Format</title>
		<link>https://www.sibeeshpassion.com/upload-contents-to-azure-container-cdn-in-wordpress-folder-format/</link>
					<comments>https://www.sibeeshpassion.com/upload-contents-to-azure-container-cdn-in-wordpress-folder-format/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Mon, 29 May 2017 16:09:25 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure CDN]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Azure Blobs With Hierarchy Folders]]></category>
		<category><![CDATA[Azure Storage And WordPress]]></category>
		<category><![CDATA[Azure With WordPress]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=12411</guid>

					<description><![CDATA[[toc] Introduction Here, in this article we are going to a see how we upload contents to our Azure container in our CDN storage in a WordPress folder format. You may be thinking what is so special in WrdPress folder format, what makes the difference in other formats? When I say WordPress folder format, I mean one folder in an another folder. In WordPress we usually have the structure as wwwroot/wp-content/uploads/2017/05/. The real problem is, we can not create a container inside a container. Yeah, you heard it right. But, you don&#8217;t need to worry about it, there is always [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<h3>Introduction</h3>
<p>Here, in this article we are going to a see how we upload contents to our <a href="http://sibeeshpassion.com/category/Azure" target="_blank">Azure </a>container in our CDN storage in a WordPress folder format. You may be thinking what is so special in WrdPress folder format, what makes the difference in other formats? When I say WordPress folder format, I mean one folder in an another folder. In WordPress we usually have the structure as <em>wwwroot/wp-content/uploads/2017/05/</em>. The real problem is, we can not create a container inside a container. Yeah, you heard it right. But, you don&#8217;t need to worry about it, there is always few ways we can achieve this need, in this post I am going to show you that. I hope you will like this. Now let&#8217;s begin.</p>
<h3>Background</h3>
<p>I recently created a Azure CDN for my website, and when I was just trying to upload the files to my Azure storage, I got stuck with the problem, that we can not create a container inside a container.</p>
<p><div id="attachment_12413" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/No-option-to-upload-a-container-inside-a-container.png"><img decoding="async" aria-describedby="caption-attachment-12413" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/No-option-to-upload-a-container-inside-a-container.png" alt="No option to upload a container inside a container" width="634" height="209" class="size-full wp-image-12413" srcset="/wp-content/uploads/2017/05/No-option-to-upload-a-container-inside-a-container.png 634w, /wp-content/uploads/2017/05/No-option-to-upload-a-container-inside-a-container-300x99.png 300w, /wp-content/uploads/2017/05/No-option-to-upload-a-container-inside-a-container-400x132.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-12413" class="wp-caption-text">No option to upload a container inside a container</p></div></p>
<p>If it is possible, changing URLs of my entire images and other contents would have been pretty much easier, hope you know what I mean? We could have just uploaded the root folder and change the main URL to our CDN endpoint. In my case, change the URL http://sibeeshpassion.com/ to http://cdn.sibeeshpassion.com/ could fix the issues, and with some plugins, we can easily do that. </p>
<p>In this post, we are going to see two possible solution we can use. </p>
<li>Use &#8220;/&#8221; in the Azure blob </li>
<li>Upload the folders via tools like Storage Explorer </li>
<h3>Use &#8220;/&#8221; in the Azure blob</h3>
<p>One good thing here is we can always create virtual folders by having the “/” character as a delimiter/part of the blob name to build the hierarchy we need. In our case it is <em>wwwroot/wp-content/uploads/2017/05/</em>. Though the Blob service in Azure storage is based on flat storage scheme, not a hierarchical scheme, we can still specify a character or string delimiter within a blob name to create a virtual hierarchy. For example, we can always create unique blobs as preceding</p>
<li>/sibeeshpassion.png</li>
<li>/2017/01//sibeeshpassion.png</li>
<li>/wp-content/uploads/2017/01/sibeeshpassion.png</li>
<p>You can follow <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata" target="_blank">this post</a> for getting more information abut this.  </p>
<h3>Upload the folders via tools like Storage Explorer</h3>
<p>This step is pretty much easier than the above mentioned way. Here we are going use the tools like Storage Explorer to do the task for us. Uploading each contents manually and renaming them in hierarchical format would be a tough task, am I right? If you are having around 20-50 images or contents in your site, that won&#8217;t be a problem. But my case was bit different, as I had around 5000 images and other contents, so I personally selected this method. </p>
<p>To get started, you will have to download the tool <a href="http://storageexplorer.com/" target="_blank">Microsoft Azure Storage Explorer</a>, once you download, please install it and open it.</p>
<p>Now, add your Azure account in Storage Explorer.</p>
<p><div id="attachment_12414" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Add-Account-in-Microsoft-Azure-Storage-Explorer.png"><img decoding="async" aria-describedby="caption-attachment-12414" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Add-Account-in-Microsoft-Azure-Storage-Explorer.png" alt="Add Account in Microsoft Azure Storage Explorer" width="634" height="490" class="size-full wp-image-12414" srcset="/wp-content/uploads/2017/05/Add-Account-in-Microsoft-Azure-Storage-Explorer.png 462w, /wp-content/uploads/2017/05/Add-Account-in-Microsoft-Azure-Storage-Explorer-300x232.png 300w, /wp-content/uploads/2017/05/Add-Account-in-Microsoft-Azure-Storage-Explorer-400x309.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-12414" class="wp-caption-text">Add Account in Microsoft Azure Storage Explorer</p></div></p>
<p>Once you add your account, the tool wish list down all of your storage and resources you have with that account. Now go to your storage account and create a container. Let&#8217;s create and name our container as wp-content.</p>
<p><div id="attachment_12415" style="width: 318px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Creating-a-BLOB-Container.png"><img decoding="async" aria-describedby="caption-attachment-12415" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Creating-a-BLOB-Container.png" alt="Creating a BLOB Container" width="308" height="201" class="size-full wp-image-12415" srcset="/wp-content/uploads/2017/05/Creating-a-BLOB-Container.png 308w, /wp-content/uploads/2017/05/Creating-a-BLOB-Container-300x196.png 300w" sizes="(max-width: 308px) 100vw, 308px" /></a><p id="caption-attachment-12415" class="wp-caption-text">Creating a BLOB Container</p></div></p>
<p>Now what is pending from our end is, uploading the folders. Let&#8217;s create one sample folder with one image.</p>
<p><div id="attachment_12416" style="width: 489px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Files-and-Folders-to-Upload.png"><img decoding="async" aria-describedby="caption-attachment-12416" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Files-and-Folders-to-Upload.png" alt="Files and Folders to Upload" width="479" height="187" class="size-full wp-image-12416" srcset="/wp-content/uploads/2017/05/Files-and-Folders-to-Upload.png 479w, /wp-content/uploads/2017/05/Files-and-Folders-to-Upload-300x117.png 300w, /wp-content/uploads/2017/05/Files-and-Folders-to-Upload-400x156.png 400w" sizes="(max-width: 479px) 100vw, 479px" /></a><p id="caption-attachment-12416" class="wp-caption-text">Files and Folders to Upload</p></div></p>
<p>Now click on the upload button and select the root folder you need to upload.</p>
<p><div id="attachment_12417" style="width: 517px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded.png"><img decoding="async" aria-describedby="caption-attachment-12417" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded.png" alt="Select the Folder to be Uploaded" width="507" height="344" class="size-full wp-image-12417" srcset="/wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded.png 507w, /wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded-300x204.png 300w, /wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded-320x218.png 320w, /wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded-160x110.png 160w, /wp-content/uploads/2017/05/Select-the-Folder-to-be-Uploaded-400x271.png 400w" sizes="(max-width: 507px) 100vw, 507px" /></a><p id="caption-attachment-12417" class="wp-caption-text">Select the Folder to be Uploaded</p></div></p>
<p>Once you are done uploading, I am sure that you can see those files in your storage account. Please be noted that it follows the same hierarchy we needed.</p>
<p><div id="attachment_12418" style="width: 731px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Select-the-Uploaded-Files-e1495893001229.png"><img decoding="async" aria-describedby="caption-attachment-12418" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Select-the-Uploaded-Files-e1495893001229.png" alt="Select the Uploaded Files" width="721" height="185" class="size-full wp-image-12418" srcset="/wp-content/uploads/2017/05/Select-the-Uploaded-Files-e1495893001229.png 634w, /wp-content/uploads/2017/05/Select-the-Uploaded-Files-e1495893001229-300x77.png 300w, /wp-content/uploads/2017/05/Select-the-Uploaded-Files-e1495893001229-400x103.png 400w" sizes="(max-width: 721px) 100vw, 721px" /></a><p id="caption-attachment-12418" class="wp-caption-text">Select the Uploaded Files</p></div></p>
<p>Now if you just copy the file URL and open it in the browser, you can see the content you have just uploaded.</p>
<blockquote><p>
Please be noted that, the default access policy of a container is private, thus you will not be able to load the contents via browser. Most probably you will be getting a 404 error. To fix this you will have to change the access policy wither to blob or container. You can follow this post: <a href="http://sibeeshpassion.com/fix-for-404-resourcenotfound-error-after-uploading-to-azure-container/" target="_blank">Fix For 404 ResourceNotFound Error After Uploading to Azure Container</a>
</p></blockquote>
<p>Just for the reference you can always login to your Azure portal and check the blob, there you can find the hierarchical blob.</p>
<p><div id="attachment_12420" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Hierarchy-Folder-Structure-in-Azure-Storage-Container.png"><img decoding="async" aria-describedby="caption-attachment-12420" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Hierarchy-Folder-Structure-in-Azure-Storage-Container.png" alt="Hierarchy Folder Structure in Azure Storage Container" width="634" height="339" class="size-full wp-image-12420" srcset="/wp-content/uploads/2017/05/Hierarchy-Folder-Structure-in-Azure-Storage-Container.png 634w, /wp-content/uploads/2017/05/Hierarchy-Folder-Structure-in-Azure-Storage-Container-300x160.png 300w, /wp-content/uploads/2017/05/Hierarchy-Folder-Structure-in-Azure-Storage-Container-400x214.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-12420" class="wp-caption-text">Hierarchy Folder Structure in Azure Storage Container</p></div></p>
<p>Thanks for reading, I will come back with another article which explore Azure CDN. Happy Uploading!.</p>
<h3>Conclusion</h3>
<p>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.</p>
<h3>Your turn. What do you think?</h3>
<p>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.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/upload-contents-to-azure-container-cdn-in-wordpress-folder-format/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Azure Content Delivery Network (CDN) &#8211; A Walk Through</title>
		<link>https://www.sibeeshpassion.com/azure-content-delivery-network-cdn-a-walk-through/</link>
					<comments>https://www.sibeeshpassion.com/azure-content-delivery-network-cdn-a-walk-through/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 28 May 2017 04:47:13 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Azure CDN]]></category>
		<category><![CDATA[Benefits Of CDN]]></category>
		<category><![CDATA[Increase Website Performance With Azure CDN]]></category>
		<category><![CDATA[Why to use CDN]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=12387</guid>

					<description><![CDATA[[toc] Introduction This post is going to walk through 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&#8217;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 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>[toc]</p>



<h3 class="wp-block-heading">Introduction</h3>



<p>This post is going to walk through about <a href="http://sibeeshpassion.com/category/Azure" target="_blank" rel="noopener noreferrer">Azure</a> 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&#8217;s go and try to answer those.</p>



<h4 class="wp-block-heading">What is a CDN</h4>



<p>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.</p>



<h4 class="wp-block-heading">What is a Azure CDN</h4>



<p>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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/cdn-overview.png"><img decoding="async" width="640" height="355" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/cdn-overview.png" alt="cdn-overview" class="wp-image-12392" srcset="/wp-content/uploads/2017/05/cdn-overview.png 640w, /wp-content/uploads/2017/05/cdn-overview-300x166.png 300w, /wp-content/uploads/2017/05/cdn-overview-400x222.png 400w" sizes="(max-width: 640px) 100vw, 640px" /></a><figcaption>cdn-overview</figcaption></figure>



<p>Image Courtesy: Microsoft Docs</p>



<p>Advantages of having a Azure CDN are listed below.</p>



<ul class="wp-block-list"><li>Better performance for your apps and services</li><li>Global distributed network</li><li>Highly scalable infrastructure</li><li>Active redundancy and failover</li><li>High reliability</li><li>Robust security</li></ul>



<h3 class="wp-block-heading">Background</h3>



<p>I own a personal website(<a href="http://sibeeshpassion.com/" target="_blank" rel="noopener noreferrer">http://sibeeshpassion.com/</a>) 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.</p>



<h3 class="wp-block-heading">Creating a Azure CDN</h3>



<p>To create a CDN, you must login to <a href="https://portal.azure.com/" target="_blank" rel="noopener noreferrer">https://portal.azure.com/</a> and then click on the New icon.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Azure-Create-New-Resource.png"><img decoding="async" width="470" height="506" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Azure-Create-New-Resource.png" alt="Azure Create New Resource" class="wp-image-12393" srcset="/wp-content/uploads/2017/05/Azure-Create-New-Resource.png 470w, /wp-content/uploads/2017/05/Azure-Create-New-Resource-279x300.png 279w, /wp-content/uploads/2017/05/Azure-Create-New-Resource-400x431.png 400w" sizes="(max-width: 470px) 100vw, 470px" /></a><figcaption>Azure Create New Resource</figcaption></figure>



<p>Now, search for CDN.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Search-for-CDN-e1495867660307.png"><img decoding="async" width="634" height="261" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Search-for-CDN-e1495867660307.png" alt="Search for CDN" class="wp-image-12394" srcset="/wp-content/uploads/2017/05/Search-for-CDN-e1495867660307.png 634w, /wp-content/uploads/2017/05/Search-for-CDN-e1495867660307-300x124.png 300w, /wp-content/uploads/2017/05/Search-for-CDN-e1495867660307-400x165.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><figcaption>Search for CDN</figcaption></figure>



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



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Create-CDN-Profile.png"><img decoding="async" width="172" height="357" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Create-CDN-Profile.png" alt="Create CDN Profile" class="wp-image-12395" srcset="/wp-content/uploads/2017/05/Create-CDN-Profile.png 172w, /wp-content/uploads/2017/05/Create-CDN-Profile-144x300.png 144w, /wp-content/uploads/2017/05/Create-CDN-Profile-289x600.png 289w" sizes="(max-width: 172px) 100vw, 172px" /></a><figcaption>Create CDN Profile</figcaption></figure>



<p>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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Choose-the-Pricing-Tier-e1495868644842.png"><img decoding="async" width="306" height="357" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Choose-the-Pricing-Tier-e1495868644842.png" alt="Choose the Pricing Tier" class="wp-image-12396" srcset="/wp-content/uploads/2017/05/Choose-the-Pricing-Tier-e1495868644842.png 306w, /wp-content/uploads/2017/05/Choose-the-Pricing-Tier-e1495868644842-257x300.png 257w, /wp-content/uploads/2017/05/Choose-the-Pricing-Tier-e1495868644842-400x466.png 400w, /wp-content/uploads/2017/05/Choose-the-Pricing-Tier-e1495868644842-515x600.png 515w" sizes="(max-width: 306px) 100vw, 306px" /></a><figcaption>Choose the Pricing Tier</figcaption></figure>



<p>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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Endpoint-Option-in-CDN-e1495868879477.png"><img decoding="async" width="634" height="182" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Endpoint-Option-in-CDN-e1495868879477.png" alt="Endpoint Option in CDN" class="wp-image-12397" srcset="/wp-content/uploads/2017/05/Endpoint-Option-in-CDN-e1495868879477.png 634w, /wp-content/uploads/2017/05/Endpoint-Option-in-CDN-e1495868879477-300x86.png 300w, /wp-content/uploads/2017/05/Endpoint-Option-in-CDN-e1495868879477-400x115.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><figcaption>Endpoint Option in CDN</figcaption></figure>



<p>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 <em>.azureedge.net</em>.</p>



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



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/CDN-Endpoint-Running-e1495869358444.png"><img decoding="async" width="634" height="118" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/CDN-Endpoint-Running-e1495869358444.png" alt="CDN Endpoint Running" class="wp-image-12398" srcset="/wp-content/uploads/2017/05/CDN-Endpoint-Running-e1495869358444.png 634w, /wp-content/uploads/2017/05/CDN-Endpoint-Running-e1495869358444-300x56.png 300w, /wp-content/uploads/2017/05/CDN-Endpoint-Running-e1495869358444-400x74.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><figcaption>CDN Endpoint Running</figcaption></figure>



<h3 class="wp-block-heading">Creating a Custom Domain</h3>



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



<p>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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Custom-Domain-Option-in-CDN-e1495870062544.png"><img decoding="async" width="634" height="77" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Custom-Domain-Option-in-CDN-e1495870062544.png" alt="Custom Domain Option in CDN" class="wp-image-12399" srcset="/wp-content/uploads/2017/05/Custom-Domain-Option-in-CDN-e1495870062544.png 634w, /wp-content/uploads/2017/05/Custom-Domain-Option-in-CDN-e1495870062544-300x36.png 300w, /wp-content/uploads/2017/05/Custom-Domain-Option-in-CDN-e1495870062544-400x49.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><figcaption>Custom Domain Option in CDN</figcaption></figure>



<p>Now login to your Domain Registrar&#8217;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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Manage-DNS-in-BigRock-e1495870314831.png"><img decoding="async" width="634" height="274" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Manage-DNS-in-BigRock-e1495870314831.png" alt="Manage DNS in BigRock" class="wp-image-12400" srcset="/wp-content/uploads/2017/05/Manage-DNS-in-BigRock-e1495870314831.png 634w, /wp-content/uploads/2017/05/Manage-DNS-in-BigRock-e1495870314831-300x130.png 300w, /wp-content/uploads/2017/05/Manage-DNS-in-BigRock-e1495870314831-400x173.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><figcaption>Manage DNS in BigRock</figcaption></figure>



<p>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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/CNAME-Creation-in-DNS-Window-e1495870474351.png"><img decoding="async" width="634" height="266" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/CNAME-Creation-in-DNS-Window-e1495870474351.png" alt="CNAME Creation in DNS Window" class="wp-image-12401" srcset="/wp-content/uploads/2017/05/CNAME-Creation-in-DNS-Window-e1495870474351.png 634w, /wp-content/uploads/2017/05/CNAME-Creation-in-DNS-Window-e1495870474351-300x126.png 300w, /wp-content/uploads/2017/05/CNAME-Creation-in-DNS-Window-e1495870474351-400x168.png 400w" sizes="(max-width: 634px) 100vw, 634px" /></a><figcaption>CNAME Creation in DNS Window</figcaption></figure>



<p>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.</p>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Adding-Custom-Hostname.png"><img decoding="async" width="164" height="357" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Adding-Custom-Hostname.png" alt="Adding Custom Hostname" class="wp-image-12402" srcset="/wp-content/uploads/2017/05/Adding-Custom-Hostname.png 164w, /wp-content/uploads/2017/05/Adding-Custom-Hostname-138x300.png 138w, /wp-content/uploads/2017/05/Adding-Custom-Hostname-275x600.png 275w" sizes="(max-width: 164px) 100vw, 164px" /></a><figcaption>Adding Custom Hostname</figcaption></figure>



<p>Click Add. If everything goes fine, you should be able to enable the custom domain and the process will get started. The process includes the following tasks.</p>



<ul class="wp-block-list"><li> Submitting request </li><li> Domain validation </li><li> Certificate provisioning </li><li> Complete </li></ul>



<p>The domain validation will be automatically done if you had added a CNAME in your host provider DNS configuration which points to your CDN host name. If not, you will get a mail (The mail id in the WHOIS database), please wait for it.</p>



<p>In the certificate provisioning task, you can either have your own certificate in the Azure Key Valut and use it, or an auto generated one from Azure. The process may take up to 6 hours, yes it is quite a lot of time. </p>



<p>If everything goes well, the process will be completed, and you can see it in your custom domain overview. </p>



<figure class="wp-block-image"><img decoding="async" width="649" height="75" src="https://sibeeshpassion.com/wp-content/uploads/2019/06/Certificate-Deployed-Azure-CDN.png" alt="" class="wp-image-13736" srcset="/wp-content/uploads/2019/06/Certificate-Deployed-Azure-CDN.png 649w, /wp-content/uploads/2019/06/Certificate-Deployed-Azure-CDN-300x35.png 300w, /wp-content/uploads/2019/06/Certificate-Deployed-Azure-CDN-425x49.png 425w" sizes="(max-width: 649px) 100vw, 649px" /><figcaption>Certificate Deployed</figcaption></figure>



<p>You can see the complete status when you click on your custom domain.</p>



<figure class="wp-block-image"><img decoding="async" width="650" height="683" src="https://sibeeshpassion.com/wp-content/uploads/2019/06/Azure-CDN-Custom-Doman-Overview.png" alt="" class="wp-image-13737" srcset="/wp-content/uploads/2019/06/Azure-CDN-Custom-Doman-Overview.png 650w, /wp-content/uploads/2019/06/Azure-CDN-Custom-Doman-Overview-286x300.png 286w, /wp-content/uploads/2019/06/Azure-CDN-Custom-Doman-Overview-425x447.png 425w" sizes="(max-width: 650px) 100vw, 650px" /><figcaption>Azure CDN Custom Domian Overview</figcaption></figure>



<figure class="wp-block-image alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Success-Notification-Custom-Domain-CDN.png"><img decoding="async" width="525" height="225" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Success-Notification-Custom-Domain-CDN.png" alt="Success Notification Custom Domain CDN" class="wp-image-12403" srcset="/wp-content/uploads/2017/05/Success-Notification-Custom-Domain-CDN.png 525w, /wp-content/uploads/2017/05/Success-Notification-Custom-Domain-CDN-300x129.png 300w, /wp-content/uploads/2017/05/Success-Notification-Custom-Domain-CDN-400x171.png 400w" sizes="(max-width: 525px) 100vw, 525px" /></a><figcaption>Success Notification Custom Domain CDN</figcaption></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>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.</p></blockquote>



<h3 class="wp-block-heading">Update to Premium</h3>



<p>I recently changed my Azure CDN to premium, which offers wide variety of services. You can compare the features <a href="https://docs.microsoft.com/en-us/azure/cdn/cdn-features">here</a>. The premium gives you a separate portal to manage your CDN,  https://cdn.windowsazure.com. You can see some of the features in the preceding image.</p>



<figure class="wp-block-image"><img decoding="async" width="255" height="516" src="https://sibeeshpassion.com/wp-content/uploads/2019/06/Azure-CDN-Premium-Features.png" alt="" class="wp-image-13738" srcset="/wp-content/uploads/2019/06/Azure-CDN-Premium-Features.png 255w, /wp-content/uploads/2019/06/Azure-CDN-Premium-Features-148x300.png 148w" sizes="(max-width: 255px) 100vw, 255px" /><figcaption>Azure CDN Premium Features</figcaption></figure>



<p>That&#8217;s all for today, I will come with another article which explore Azure CDN more. Till then, bye.</p>



<h3 class="wp-block-heading">Conclusion</h3>



<p>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.</p>



<h3 class="wp-block-heading">Your turn. What do you think?</h3>



<p>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.</p>



<p>Kindest Regards<br>Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/azure-content-delivery-network-cdn-a-walk-through/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
