{"id":18415,"date":"2015-06-26T10:00:22","date_gmt":"2015-06-26T09:00:22","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=18415"},"modified":"2015-06-26T10:12:37","modified_gmt":"2015-06-26T09:12:37","slug":"understanding-azure-storage-accounts","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=18415","title":{"rendered":"Understanding Azure Storage Accounts"},"content":{"rendered":"<p>This post will walk you through figuring out Azure Storage accounts, pricing, and redundancy. One of the first things you will want to do when deploying virtual machines, websites (they can use them), or anything else in Azure is a storage account. But I find that most people, if they bother to search for the <a href=\"http:\/\/azure.microsoft.com\/pricing\/details\/storage\/\" target=\"_blank\">Azure storage pricing page<\/a>, find the official page and get blizzard blindness.<\/p>\n<h2>The Official Guides<\/h2>\n<p>I find these pages to be useful:<\/p>\n<ul>\n<li><a href=\"https:\/\/azure.microsoft.com\/documentation\/articles\/storage-introduction\/\" target=\"_blank\">Introduction to Microsoft Azure Storage<\/a>: A nice introduction to the terminology, types, etc.<\/li>\n<li><a href=\"http:\/\/azure.microsoft.com\/pricing\/details\/storage\/\" target=\"_blank\">Azure Storage Pricing<\/a>: Get the pricing for each option.<\/li>\n<li><a href=\"https:\/\/msdn.microsoft.com\/library\/azure\/gg433040.aspx\" target=\"_blank\">MSDN \u2013 Azure Storage<\/a>: Lots of additional links.<\/li>\n<li><a href=\"http:\/\/sigops.org\/sosp\/sosp11\/current\/2011-Cascais\/printable\/11-calder.pdf\" target=\"_blank\">Windows Azure Storage &#8211; A Highly Available Cloud Storage Service with Strong Consistency<\/a>: An interesting whitepaper discussing the internals and replication architecture of Azure Storage.<\/li>\n<\/ul>\n<h2>The Storage Account Concept<\/h2>\n<p>I imagine that you are the regular IT guy that asks for X GBs of a LUN at a certain RAID level. Things are different in Azure. A Storage Account is an access point to Azure storage. The account has a URL with permission-based access:<\/p>\n<ul>\n<li>URL that is unique to the storage account accessed via TLS 1.0 (successor to SSL) or later<\/li>\n<li>A primary and a secondary access key<\/li>\n<\/ul>\n<p>You create the storage account with a selected resiliency level. You do not configure a size \u2013 a single storage account can storage up to 500 TB of data and you pay for the amount of each service type that is contained within the storage account. You can create containers within a storage account that are similar to folders, allowing you to logically place your data\/files. And there are remote access tools for managing storage.<\/p>\n<p>So all this means that your storage \u201crequest\u201d becomes \u2026 I want a storage account with name X (which is used as the basis for the URL) of resiliency Y in region Z.<\/p>\n<h2>Resiliency<\/h2>\n<p>There are 4 models of resiliency:<\/p>\n<ul>\n<li><strong>Locally Redundant Storage (LRS)<\/strong>: 3 synchronous copies in a single data centre in the region of choice. There is no facility fault tolerance \u2013 if that single data centre has a catastrophic failure then you lose everything.<\/li>\n<li><strong>Geo-Redundant Storage (GRS)<\/strong>: 3 synchronous copies in a single data centre in the region of choice, PLUS 3 asynchronous copies in the neighbouring region. GRS gets your data replicated to another region and this is how one gets facility fault tolerance.<\/li>\n<li><strong>Read-Access Geo-Redundant Storage (RA-GRS)<\/strong>: 3 synchronous copies in a single data centre in the region of choice, PLUS 3 asynchronous <em>read-only<\/em> copies in the neighbouring region<\/li>\n<li><strong>Zone Redundant Storage (ZRS)<\/strong>: There are three copies of your data, \u201creplicated three times across two to three facilities, either within a single region or across two regions\u201d. ZRS can only be used with Block Blobs (no use for IaaS).<\/li>\n<\/ul>\n<h2>Service Types<\/h2>\n<p>I know from experience that when you consider deploying a storage account for the first time you will be be wondering \u201chow do I know where to put my files to be sure that I\u2019m charged at the right rate?\u201d. Don\u2019t worry \u2026 all this is handled for you. Store your files and they are treated appropriately. Here are the 4 service types:<\/p>\n<ul>\n<li><strong>Block blobs<\/strong>: Streaming and storing documents, videos, pictures, and other unstructured text or binary data. This is the service used by <u>Azure Backup<\/u>.<\/li>\n<li><strong>Files (still in preview at the time of writing)<\/strong>: Used to create in-Azure SMB 2.x file shares for sharing content between applications in Azure \u2013 nothing else.<\/li>\n<li><strong>Page blobs &amp; disks<\/strong>: Used to store Azure VM files (virtual hard disks in the VHD format \u2013 VHDX is not supported).<\/li>\n<li><strong>Tables &amp; Queues<\/strong>:\u00a0 NoSQL storage for unstructured and semi-structured data, and very much a PaaS thing.<\/li>\n<\/ul>\n<h2>What Kind of Azure Storage for IaaS?<\/h2>\n<p>For the most part, we in the IaaS world are concerned with:<\/p>\n<ul>\n<li>Block blobs for Azure Backup, LRS or GRS<\/li>\n<li>Page blobs &amp; disks for Azure virtual machine (VM) files, LRS or GRS<\/li>\n<li>Page blobs &amp; disks for Azure Site Recovery, GRS only<\/li>\n<\/ul>\n<p>However, you might see other services being used for monitoring data, configuration files, metadata, etc. Don\u2019t worry, that stuff is tiny, Azure storage is CHEAP, and Azure manages all that stuff.<\/p>\n<h2>Premium Storage Accounts<\/h2>\n<p>Everything above is related to Standard Storage accounts. However, Azure offers the ability to deploy Premium Storage\u00a0 where virtual machine files are stored on SSDs instead of HDDs. This increases IOPS and reduces latency, and comes at a much greater cost. Don\u2019t be foolish and deploy Premium Storage based on gut feeling \u2013 this cost is big enough that a proof-of-concept with realistic load simulation has determined that Standard Storage was insufficient.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will walk you through figuring out Azure Storage accounts, pricing, and redundancy. One of the first things you will want to do when deploying virtual machines, websites (they can use them), or anything else in Azure is a storage account. But I find that most people, if they bother to search for the &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=18415\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Understanding Azure Storage Accounts&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18412,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[5],"tags":[170,99],"class_list":["post-18415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","tag-azure","tag-storage"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/06\/unita-disco-rigido-arch-01r1.png","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18415"}],"version-history":[{"count":6,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18415\/revisions"}],"predecessor-version":[{"id":18431,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18415\/revisions\/18431"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/18412"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}