{"id":39986,"date":"2016-08-31T15:46:06","date_gmt":"2016-08-31T10:16:06","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=39986"},"modified":"2016-12-19T15:04:03","modified_gmt":"2016-12-19T09:34:03","slug":"how-we-can-setup-cdn-on-microsoft-window-azure-with-storage","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-we-can-setup-cdn-on-microsoft-window-azure-with-storage\/","title":{"rendered":"How we can setup CDN on Microsoft Azure with storage?"},"content":{"rendered":"<p><strong>What is CDN?<\/strong><\/p>\n<p>A content delivery network (CDN) is a system of distributed servers (network) which deliver webpages and other Web content to a user based on the geographic locations of the user, the origin of the webpage and a content delivery server.<\/p>\n<p><strong>Reasons to use CDN<\/strong><\/p>\n<ol>\n<li><strong> Different domains<\/strong><\/li>\n<\/ol>\n<p>Browsers have limit of number of concurrent connections (file downloads) to a single domain. Most permit four active connections so the 5<sup>th<\/sup> download is blocked until one of the previous files has been fully retrieved. You can often check this limit in action when downloading many large files from the same site.<\/p>\n<p>CDN files are hosted on a different domain. Really, a single CDN permits the browser to download a further four files at the same time.<\/p>\n<ol start=\"2\">\n<li><strong> Files may be pre-cached<\/strong><\/li>\n<\/ol>\n<p><a title=\"Javascript Engineering\" href=\"http:\/\/www.tothenew.com\/front-end-angularjs-development\">JQuery<\/a> is ubiquitous on the web. There is a high probability that someone visiting our website\u2019s pages has already visited a website using the Google CDN. Therefore, the file has already been cached by your browser and would not need to be downloaded again.<\/p>\n<ol start=\"3\">\n<li><strong> High-capacity infrastructures<\/strong><\/li>\n<\/ol>\n<p>You may have great hosting but as per my understanding it doesn\u2019t have the capacity or scalability offered by Google, Microsoft or Yahoo. The better CDNs offer higher availability, lower network latency and lower packet loss.<\/p>\n<ol start=\"4\">\n<li><strong> Distributed data centers<\/strong><\/li>\n<\/ol>\n<p>If main web server is based in Washington, users from Europe or Asia must make a number of trans-continental electronic hops when they access files. Many CDNs provide localized data a center which are closer to the user and result in faster downloads.<\/p>\n<ol start=\"5\">\n<li><strong> Built-in version control<\/strong><\/li>\n<\/ol>\n<p>It is usually possible to link to a specific version of a CSS file or JavaScript library. We can often request the \u201clatest\u201d version if required.<\/p>\n<ol start=\"6\">\n<li><strong> Usage analytics<\/strong><\/li>\n<\/ol>\n<p>Many commercial CDNs provide file usage reports since they generally charge per byte. Those reports can supplement our own website analytics and, in some cases, may offer a better impression of video views and downloads.<\/p>\n<ol start=\"7\">\n<li><strong> Boosts performance and saves money<\/strong><\/li>\n<\/ol>\n<p>A CDN can distribute the load, save bandwidth, boost performance and reduce our existing hosting costs.<\/p>\n<p><strong>Step by step approach to create storage and integrate that storage account with CDN<\/strong><\/p>\n<ul>\n<li>Login with existing Azure account or Signup with new account<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-39995 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/12.png\" alt=\"cdnlogin\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/12.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/12-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/12-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/12-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><strong>\u00a0<\/strong>After getting successful signup or login, user will be redirected on dashboard as given in below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40004 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/22.png\" alt=\"2\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/22.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/22-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/22-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/22-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<ul>\n<li>Create Blob Storage Account on clicking on +New button as given below screen :-<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40009 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/31.png\" alt=\"3\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/31.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/31-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/31-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/31-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40012 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/4.png\" alt=\"4\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/4.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/4-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/4-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/4-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40013 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/5.png\" alt=\"5\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/5.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/5-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/5-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/5-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>User has to fill required details such as storage account name, account kind, replication, subscription, resource group and location to create new storage account. After successful creation of storage account, user has to create container which is used to store content, image, video etc. as given below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40014 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/6.png\" alt=\"6\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/6.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/6-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/6-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/6-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>Click on storage account name as given in above screen shot.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40018 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/7.png\" alt=\"7\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/7.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/7-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/7-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/7-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>Click on Blobs as shown in above screen shot .<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40021 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/71.png\" alt=\"7\" width=\"1366\" height=\"672\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/71.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/71-300x147.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/71-1024x503.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/71-624x306.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>Create container by filling container name e.g. image, css, video etc. and select access type as Private, Blob or container as shown in above screen shot.<\/p>\n<p>Now storage account creation process is completed and user\u2019s storage account is ready to use.<\/p>\n<p>User has to download Microsoft Azure Storage Explorer to Upload and Download content files on his Azure storage account. The link to download is http:\/\/storageexplorer.com\/.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40022 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/72.png\" alt=\"7\" width=\"1366\" height=\"607\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/72.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/72-300x133.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/72-1024x455.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/72-624x277.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>After downloading and installing it on system, user has to login with same credentials which he\/she used to login with azure account as given below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40024 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/73.png\" alt=\"7\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/73.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/73-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/73-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/73-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>After getting successful login with his\/her account user will be redirected to his\/her account dashboard screen as given below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40025 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/74.png\" alt=\"7\" width=\"1366\" height=\"768\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/74.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/74-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/74-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/74-624x350.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>Open container which you created in window azure storage account as shown in above screen shot.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40030 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/75.png\" alt=\"7\" width=\"749\" height=\"467\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/75.png 749w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/75-300x187.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/75-624x389.png 624w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><br \/>\nUpload content file as given below screen shots.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40031 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/76.png\" alt=\"7\" width=\"1359\" height=\"709\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/76.png 1359w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/76-300x156.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/76-1024x534.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/76-624x325.png 624w\" sizes=\"(max-width: 1359px) 100vw, 1359px\" \/><\/p>\n<p>Now user can get file url to access as given below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40032 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/77.png\" alt=\"7\" width=\"1366\" height=\"709\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/77.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/77-300x155.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/77-1024x531.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/77-624x323.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><br \/>\nAfter getting uploaded file successfully on storage will be shown as in given below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40033 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/78.png\" alt=\"7\" width=\"1366\" height=\"709\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/78.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/78-300x155.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/78-1024x531.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/78-624x323.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>Also you can check it on window azure storage account as given below screen shot:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40034 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/79.png\" alt=\"7\" width=\"1366\" height=\"709\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/79.png 1366w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/79-300x155.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/79-1024x531.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/79-624x323.png 624w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><strong>URL: &#8211; <\/strong><\/p>\n<p>Now user can use the url generated from storage account in his application to display that content.<\/p>\n<p><strong>Now create CDN profile and CDN end point to enable CDN with Storage Account<\/strong><\/p>\n<p>CREATE CDN Profile as given below screen shots:-<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40037 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/710.png\" alt=\"7\" width=\"868\" height=\"654\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/710.png 868w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/710-300x226.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/710-624x470.png 624w\" sizes=\"(max-width: 868px) 100vw, 868px\" \/><\/p>\n<p>Create CDN profile by filling and selecting required information as Profile Name, Subscription resource group (if exist any, please select that otherwise create new one).Resource group location will be auto selected on behalf of your resource group selection. At last you have to choose pricing tier, based on this selection price will be charged.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40038 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/711.png\" alt=\"7\" width=\"950\" height=\"671\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/711.png 950w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/711-300x211.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/711-624x440.png 624w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><strong>Create End Point to generate CDN URL of resources as:-<\/strong><\/p>\n<p>You can set name of endpoint which will be used as CDN url.Then select origin type (e.g. Storage).Then select origin hostname i.e. select storage which will be mapped with CDN end point. Once Endpoint will be created successfully, will be listed as given below screen shot.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-40039\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/712-300x214.png\" alt=\"7\" width=\"300\" height=\"214\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/712-300x214.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/712-624x446.png 624w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/712.png 947w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Here  is the endpoint which can be used to display resources stored in storage. For example here I uploaded Video_360.mp4 in storage section in Video folder So I can use to access this video as given below url:-<\/p>\n<p><strong>CDN URL: &#8211;<\/strong><strong><em> <\/em><\/strong><\/p>\n<p><strong>\u00a0<\/strong>Set custom hostname with respect to a particular endpoint .For example for this end point <strong><em> <\/em><\/strong>we can set custom domain name as given below screen shot.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-40041 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/713.png\" alt=\"7\" width=\"949\" height=\"679\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/713.png 949w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/713-300x214.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/08\/713-624x446.png 624w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/p>\n<p>Now CDN Profile and Endpoint created successfully. You can upload resources on storage and use CDN url.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is CDN? A content delivery network (CDN) is a system of distributed servers (network) which deliver webpages and other Web content to a user based on the geographic locations of the user, the origin of the webpage and a content delivery server. Reasons to use CDN Different domains Browsers have limit of number of [&hellip;]<\/p>\n","protected":false},"author":697,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[2348,1],"tags":[3466,2645,3233],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/39986"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/697"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=39986"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/39986\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=39986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=39986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=39986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}