{"id":17653,"date":"2020-08-25T05:47:44","date_gmt":"2020-08-25T05:47:44","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=17653"},"modified":"2020-08-26T11:49:43","modified_gmt":"2020-08-26T11:49:43","slug":"managing-key-management-for-storage-accounts","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/","title":{"rendered":"Managing Key Management for Storage accounts"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-500-microsoft-azure-security-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to AZ-500 Tutorials<\/a><\/p>\n\n\n\n<p>In this tutorial, we will learn and understand about managing key management by creating a storage account.<\/p>\n\n\n\n<p>While creating the storage account,&nbsp; Azure generates two 512-bit storage account access keys. Further, these keys can be used for authorizing access to data in your storage account via Shared Key authorization.<\/p>\n\n\n\n<p>Also, Microsoft recommends that you use Azure Key Vault to manage your access keys, and that you regularly rotate and regenerate your keys.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Protecting your access keys<\/strong><\/h4>\n\n\n\n<p>Your storage account access keys are the same as the root password for your storage account.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, always be careful while protecting your access keys.\u00a0<\/li><li>Secondly, use Azure Key Vault for managing and rotating your keys securely.\u00a0<\/li><li>Thirdly, avoiding distributing access keys for other users or saving them anywhere in plain text that is accessible to others.\u00a0<\/li><li>Lastly, rotate your keys if you believe they may have been compromised.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-security-technologies-az-500-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\/AZ_500-practice-tests-12.png\" alt=\"AZ-500 Practice tests\" class=\"wp-image-18004\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ_500-practice-tests-12.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ_500-practice-tests-12-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Viewing account access keys<\/strong><\/h4>\n\n\n\n<p>You have the option to view and copy your account access keys with the Azure portal, PowerShell, or Azure CLI. However, the Azure portal also provides a connection string for your storage account that you can copy.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Portal<\/strong><\/h6>\n\n\n\n<p>For viewing and copying your storage account access keys or connection string from the Azure portal:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, navigate to your storage account in the Azure portal.<\/li><li>Secondly, under Settings, select Access keys. Then, your account access keys appear including the complete connection string for each key.<\/li><li>Thirdly, locate the Key value under key1, and click the Copy button to copy the account key.<\/li><li>Alternately, you can copy the entire connection string. Lastly, find the Connection string value under key1, and click the Copy button to copy the connection string.<\/li><\/ul>\n\n\n\n<p>However, you can use either of the two keys to access Azure Storage, but in general it&#8217;s a good practice to use the first ke. Further, reserve the use of the second key for when rotating the keys. For viewing or reading an account&#8217;s access keys, the user must be a Service Administrator.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Using Azure Key Vault to manage your access keys<\/strong><\/h4>\n\n\n\n<p>Microsoft recommends using Azure Key Vault for managing and rotating your access keys. Moreover, your application can securely access your keys in Key Vault, so that you can avoid storing them with your application code.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Manually rotate access keys<\/strong><\/h4>\n\n\n\n<p>Microsoft recommends that you rotate your access keys periodically for keeping your storage account secure. However, if possible, use Azure Key Vault for managing your access keys.&nbsp;<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Portal<\/strong><\/h6>\n\n\n\n<p>For rotating your storage account access keys in the Azure portal:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, updating the connection strings in your application code for referencing the secondary access key for the storage account.<\/li><li>Secondly, navigate to your storage account in the Azure portal.<\/li><li>Thirdly, under Settings, select Access keys.<\/li><li>Then, for regenerating the primary access key for your storage account, select the Regenerate button next to the primary access key.<\/li><li>After that, update the connection strings in your code to reference the new primary access key.<\/li><li>Lastly, 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-security-technologies-az-500-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\/AZ-500-online-course-13.png\" alt=\"Az-500 online course key management concept\" class=\"wp-image-17660\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-500-online-course-13.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-500-online-course-13-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\/common\/storage-account-keys-manage?tabs=azure-portal\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-500-microsoft-azure-security-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-500-microsoft-azure-security-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to AZ-500 Tutorials<\/a><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to AZ-500 Tutorials In this tutorial, we will learn and understand about managing key management by creating a storage account. While creating the storage account,&nbsp; Azure generates two 512-bit storage account access keys. Further, these keys can be used for authorizing access to data in your storage account via Shared Key authorization. Also,&#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-17653","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>Managing Key Management for Storage accounts | AZ-500 Tutorials<\/title>\n<meta name=\"description\" content=\"Learn and understand about managing Key Management for Storage accounts using Microsoft AZ-500 online course and Practice 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\/managing-key-management-for-storage-accounts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Managing Key Management for Storage accounts | AZ-500 Tutorials\" \/>\n<meta property=\"og:description\" content=\"Learn and understand about managing Key Management for Storage accounts using Microsoft AZ-500 online course and Practice Exam Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-26T11:49:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ_500-practice-tests-12.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\/managing-key-management-for-storage-accounts\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/\",\"name\":\"Managing Key Management for Storage accounts | AZ-500 Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-25T05:47:44+00:00\",\"dateModified\":\"2020-08-26T11:49:43+00:00\",\"description\":\"Learn and understand about managing Key Management for Storage accounts using Microsoft AZ-500 online course and Practice Exam Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Managing Key Management for Storage accounts\"}]},{\"@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":"Managing Key Management for Storage accounts | AZ-500 Tutorials","description":"Learn and understand about managing Key Management for Storage accounts using Microsoft AZ-500 online course and Practice 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\/managing-key-management-for-storage-accounts\/","og_locale":"en_US","og_type":"article","og_title":"Managing Key Management for Storage accounts | AZ-500 Tutorials","og_description":"Learn and understand about managing Key Management for Storage accounts using Microsoft AZ-500 online course and Practice Exam Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-26T11:49:43+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ_500-practice-tests-12.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\/managing-key-management-for-storage-accounts\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/","name":"Managing Key Management for Storage accounts | AZ-500 Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-25T05:47:44+00:00","dateModified":"2020-08-26T11:49:43+00:00","description":"Learn and understand about managing Key Management for Storage accounts using Microsoft AZ-500 online course and Practice Exam Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/managing-key-management-for-storage-accounts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Managing Key Management for Storage accounts"}]},{"@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\/17653","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=17653"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/17653\/revisions"}],"predecessor-version":[{"id":18031,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/17653\/revisions\/18031"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=17653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=17653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=17653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}