{"id":18526,"date":"2020-08-28T12:51:12","date_gmt":"2020-08-28T12:51:12","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=18526"},"modified":"2020-08-28T12:51:13","modified_gmt":"2020-08-28T12:51:13","slug":"implementing-solution-using-blob-storage","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/","title":{"rendered":"Implementing Solution using Blob Storage"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-dp-200-implementing-an-azure-data-solution\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to DP-200 Tutorials<\/a><\/p>\n\n\n\n<p>In this tutorial, we will learn how to build and deploy a static website to Azure blob storage. Moreover, we will understand about configuring static website hosting and deploying a Hello World website.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h6>\n\n\n\n<p>For accessing Azure Storage, you&#8217;ll require an Azure subscription. However, if you don&#8217;t already have a subscription, create a free account before you begin. For this firstly, create a storage account using the Azure portal, Azure PowerShell, or Azure CLI.&nbsp;<\/p>\n\n\n\n<p>After installing Visual Studio Code, install the Azure Storage preview extension. However, extension integrates Azure Storage management functionality with Visual Studio Code. For installing the extension:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, launch Visual Studio Code.<\/li><li>Secondly, on the toolbar, click Extensions. Then, search for Azure Storage, and select the Azure Storage extension from the list. After that, click the Install button to install the extension.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Configuring static website hosting<\/strong><\/h4>\n\n\n\n<p>Firstly configure your storage account for hosting a static website in the Azure portal. And, when you configure your account for static website hosting, then, Azure Storage automatically creates a container named $web. The $web container will contain the files for your static website.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, open the Azure portal in your web browser.<\/li><li>Secondly, locate your storage account and display the account overview.<\/li><li>Thirdly, select Static website to display the configuration page for static websites.<\/li><li>Then, select Enabled to enable static website hosting for the storage account.<\/li><li>After that, in the Index document name field, specify a default index page of index.html. However, the default index page is displayed when a user navigates to the root of your static website.<\/li><li>Next, in the Error document path field, specify a default error page of 404.html. However, the default error page is displayed when a user attempts to navigate to a page that does not exist in your static website.<\/li><li>Lastly, click Save and the Azure portal now displays your static website endpoint.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/implementing-an-azure-data-solution-dp-200-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-pracice-tests-1.png\" alt=\"DP-200 practice tests\" class=\"wp-image-18535\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-pracice-tests-1.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-pracice-tests-1-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Deploying a Hello World website<\/strong><\/h4>\n\n\n\n<p>Next, create a Hello World web page with Visual Studio Code. And then, deploy it to the static website hosted in your Azure Storage account.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, create an empty folder named mywebsite on your local file system.<\/li><li>Secondly, launch Visual Studio Code, and open the folder that you just created from the Explorer panel.<\/li><li>Thirdly, create the default index file in the mywebsite folder and name it index.html.<\/li><li>Then, open index.html in the editor, paste the following text into the file, and save it: <em>&lt;h1&gt;Hello World!&lt;\/h1&gt;<\/em><\/li><li>After that, create the default error file and name it 404.html.<\/li><li>Next, open 404.html in the editor, paste the following text into the file, and save it: <em>&lt;h1&gt;404&lt;\/h1&gt;<\/em><\/li><li>Then, right-click under the mywebsite folder in the Explorer panel and select Deploy to Static Website&#8230; to deploy your website. There you will be prompted to log in to Azure to retrieve a list of subscriptions.<\/li><li>Lastly, select the subscription containing the storage account for which you enabled static website hosting. Next, select the storage account when prompted.<\/li><\/ul>\n\n\n\n<p>Now, Visual Studio Code will upload your files to your web endpoint, and show the success status bar. Launch the website to view it in Azure.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/implementing-an-azure-data-solution-dp-200-practice-exam\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-online-course-1.png\" alt=\"DP-200 Online course\" class=\"wp-image-18534\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-online-course-1.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-online-course-1-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference: <\/strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/blobs\/storage-blob-static-website-host\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-dp-200-implementing-an-azure-data-solution\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to DP-200 Tutorials<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to DP-200 Tutorials In this tutorial, we will learn how to build and deploy a static website to Azure blob storage. Moreover, we will understand about configuring static website hosting and deploying a Hello World website. Prerequisites For accessing Azure Storage, you&#8217;ll require an Azure subscription. However, if you don&#8217;t already have a&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-18526","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Implementing Solution using Blob Storage | Microsoft DP-200 Tutorials<\/title>\n<meta name=\"description\" content=\"Enhance your skills by learning about Implementing a solution using Blob Storage using Microsoft DP-200 online course Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Implementing Solution using Blob Storage | Microsoft DP-200 Tutorials\" \/>\n<meta property=\"og:description\" content=\"Enhance your skills by learning about Implementing a solution using Blob Storage using Microsoft DP-200 online course Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-28T12:51:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-pracice-tests-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/\",\"name\":\"Implementing Solution using Blob Storage | Microsoft DP-200 Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-28T12:51:12+00:00\",\"dateModified\":\"2020-08-28T12:51:13+00:00\",\"description\":\"Enhance your skills by learning about Implementing a solution using Blob Storage using Microsoft DP-200 online course Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Implementing Solution using Blob Storage\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Implementing Solution using Blob Storage | Microsoft DP-200 Tutorials","description":"Enhance your skills by learning about Implementing a solution using Blob Storage using Microsoft DP-200 online course Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/","og_locale":"en_US","og_type":"article","og_title":"Implementing Solution using Blob Storage | Microsoft DP-200 Tutorials","og_description":"Enhance your skills by learning about Implementing a solution using Blob Storage using Microsoft DP-200 online course Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-28T12:51:13+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/dp-200-pracice-tests-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/","name":"Implementing Solution using Blob Storage | Microsoft DP-200 Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-28T12:51:12+00:00","dateModified":"2020-08-28T12:51:13+00:00","description":"Enhance your skills by learning about Implementing a solution using Blob Storage using Microsoft DP-200 online course Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/implementing-solution-using-blob-storage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Implementing Solution using Blob Storage"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/18526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=18526"}],"version-history":[{"count":2,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/18526\/revisions"}],"predecessor-version":[{"id":18543,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/18526\/revisions\/18543"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=18526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=18526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=18526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}