{"id":14196,"date":"2020-07-30T08:24:56","date_gmt":"2020-07-30T08:24:56","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=14196"},"modified":"2022-03-23T10:30:56","modified_gmt":"2022-03-23T10:30:56","slug":"learn-to-manage-storage-account-access-keys","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/","title":{"rendered":"Learn to Manage storage account access keys"},"content":{"rendered":"\n<p>This tutorial will help you learn Learn to Manage storage account access keys in the Azure portal. Azure produces two 512-bit storage account access keys when you create a storage account. Shared Key authorization may be used to approve access to data in your storage account using these keys.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"protect-your-access-keys\"><strong>Learn to Protect your access keys<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Your storage account access keys are comparable to your storage account&#8217;s root password.<\/li><li>Keep your access keys safe at all times.<\/li><li>Securely manage and rotate your keys using Azure Key Vault.<\/li><li>Access keys should not be distributed to other users, hard-coded, or saved in plain text that is visible to others.<\/li><li>If you suspect your keys have been hacked, rotate them.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"view-account-access-keys\"><strong>Learn to View account access keys<\/strong><\/h3>\n\n\n\n<p>Your account access keys may be seen and copied using the Azure portal, PowerShell, or the Azure CLI. You may also copy the connection string for your storage account from the Azure site. In the tutorial, you will get information about Azure Portal.<\/p>\n\n\n\n<p>From the Azure site, see and copy your storage account access keys or connection string:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Navigate to your storage account in the\u00a0Azure portal.<\/li><li>Then, Under\u00a0<strong>Settings<\/strong>, select\u00a0<strong>Access keys<\/strong>. Your account access keys, as well as the whole connection string for each key, are displayed.<\/li><li>Additionally, locate the Key value beneath key1 and copy the account key by clicking the Copy button.<\/li><li>Alternately, you can copy the entire connection string. Find the\u00a0<strong>Connection string<\/strong>\u00a0value under\u00a0<strong>key1<\/strong>, and click the\u00a0<strong>Copy<\/strong>\u00a0button to copy the connection string.<\/li><\/ul>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/common\/media\/storage-account-keys-manage\/portal-connection-string.png\" alt=\"Screenshot showing how to view access keys in the Azure portal\"><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You can use Azure Storage with any of the two keys, but it&#8217;s often a good idea to utilise the first key and save the second key for when you&#8217;re rotating keys.<\/li><li>Lastly, To view or read an account&#8217;s access keys, the user must either be a Service Administrator, or must be assigned an RBAC role that includes the\u00a0<strong>Microsoft.Storage\/storageAccounts\/listkeys\/action<\/strong>. <ul><li>The <strong>Owner, Contributor, and Storage Account Key<\/strong> <strong>Operator<\/strong> Service Role roles are some of the Azure built-in roles that include this activity.<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"use-azure-key-vault-to-manage-your-access-keys\"><strong>Use Azure Key Vault to manage your access keys<\/strong><\/h3>\n\n\n\n<p>To maintain and rotate your access keys, Microsoft recommends using Azure Key Vault. Your application may use Key Vault to securely access your keys, allowing you to avoid storing them in your application code. See the following articles for further information on utilizing Key Vault for key management:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Manage storage account keys with Azure Key Vault and PowerShell<\/li><li>Also, Manage storage account keys with Azure Key Vault and the Azure CLI<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"manually-rotate-access-keys\"><strong>Manually rotate access keys<\/strong><\/h3>\n\n\n\n<p>To keep your storage account safe, Microsoft suggests rotating your access keys on a regular basis. Use Azure Key Vault to manage your access keys if at all feasible. If you don&#8217;t have Key Vault installed, you&#8217;ll have to rotate your keys manually. You are given two access keys so that you may rotate your keys. Having two keys guarantees that your application may access Azure Storage at any time during the process. <\/p>\n\n\n\n<p>In the Azure interface, rotate your storage account access keys as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Update the connection strings in your application code to reference the secondary access key for the storage account.<\/li><li>Secondly, Navigate to your storage account in the\u00a0Azure portal.<\/li><li>Thirdly, Under\u00a0<strong>Settings<\/strong>, select\u00a0<strong>Access keys<\/strong>.<\/li><li>Subsequently, To regenerate the primary access key for your storage account, select the\u00a0<strong>Regenerate<\/strong>\u00a0button next to the primary access key.<\/li><li>Furthermore, Update the connection strings in your code to reference the new primary access key.<\/li><li>Finally you can Regenerate the secondary access key in the same manner.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation and image source &#8211; <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/common\/storage-account-keys-manage?tabs=azure-portal\" target=\"_blank\">Manage storage account access keys<\/a> <\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will help you learn Learn to Manage storage account access keys in the Azure portal. Azure produces two 512-bit storage account access keys when you create a storage account. Shared Key authorization may be used to approve access to data in your storage account using these keys. Learn to Protect your access keys&#8230;<\/p>\n","protected":false},"author":1,"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-14196","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>Learn to Manage storage account access keys - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to Manage storage account access keys and passing AZ-303 Exam 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\/learn-to-manage-storage-account-access-keys\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to Manage storage account access keys - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to Manage storage account access keys and passing AZ-303 Exam Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-23T10:30:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/common\/media\/storage-account-keys-manage\/portal-connection-string.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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/\",\"name\":\"Learn to Manage storage account access keys - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-07-30T08:24:56+00:00\",\"dateModified\":\"2022-03-23T10:30:56+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to Manage storage account access keys and passing AZ-303 Exam Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to Manage storage account access keys\"}]},{\"@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":"Learn to Manage storage account access keys - Testprep Training Tutorials","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to Manage storage account access keys and passing AZ-303 Exam 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\/learn-to-manage-storage-account-access-keys\/","og_locale":"en_US","og_type":"article","og_title":"Learn to Manage storage account access keys - Testprep Training Tutorials","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to Manage storage account access keys and passing AZ-303 Exam Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-23T10:30:56+00:00","og_image":[{"url":"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/common\/media\/storage-account-keys-manage\/portal-connection-string.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/","name":"Learn to Manage storage account access keys - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-07-30T08:24:56+00:00","dateModified":"2022-03-23T10:30:56+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to Manage storage account access keys and passing AZ-303 Exam Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/learn-to-manage-storage-account-access-keys\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Learn to Manage storage account access keys"}]},{"@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\/14196","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=14196"}],"version-history":[{"count":4,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14196\/revisions"}],"predecessor-version":[{"id":53426,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14196\/revisions\/53426"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=14196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=14196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=14196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}