Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

How to get storage account key in Azure

September 30, 2025July 8, 2025 by Rajkishore

In this Azure tutorial, we will discuss what a storage account key is in Azure and how to get it using Azure Portal, PowerShell, and Azure CLI.

Table of Contents

  • How to get storage account key in Azure
    • Approach 1: Using Azure Portal
    • Approach 2: Using PowerShell
    • Approach 3: Using Azure CLI
  • Wrapping Up

How to get storage account key in Azure

Azure storage account access keys are the keys that are generated by default when you create an Azure storage account. Those two access keys are used to authorize access to the data inside your Azure Storage Account.

These master keys are 512-bit.

Out of these two keys, you can use any one of the access keys for the authorization process to access your Storage Account.

Approach 1: Using Azure Portal

To get storage account key in Azure, follow the steps below.

  1. Log in to the Azure Portal.
  2. Search for Storage accounts and click on the search result Storage accounts.
azure storage account key

3. You can now see the lists of Storage accounts you created. Click on the specific storage account for the one you wish to get the access key.

4. Click the Access keys link on the Storage account page, under Security + networking.

how to get azure storage account key

5. You can see Keys 1 and 2 on the right side. By default, it is hidden. Click on the Show button for each one to view the key.

get azure storage account key

If you don’t want to use the old key and want to regenerate a new access key for your Azure Storage account, you can click the “Rotate key” button. However, before that, it is essential to note that the old key is not recoverable.

azure storage account key retrieval

On the ‘Regenerate access key’ pop-up, read the information carefully, and click the ‘Yes’ button to confirm the process of generating a new access key for your Azure Storage account.

how to find azure storage account key

Approach 2: Using PowerShell

You can find the storage account key in Azure using the Get-AzStorageAccountKey Azure PowerShell cmdlet.

Syntax:

Below is the syntax to retrieve the Storage key in Azure.

Get-AzStorageAccountKey -ResourceGroupName "Your Resource group name" -Name "Storage account name"

Example: In the below example, DEMORG1 is the name of my Resource Group, and demoggh is the name of my Azure Storage account.

Get-AzStorageAccountKey -ResourceGroupName "DEMORG1" -Name "demoggh"

After executing the above script, I got the following output

KeyName Value                                                                         
------- -----                                                                         
key1    1dMSmTL3GNTqBqpi+iSbfqDY/43rqthsWb/u1EVwiKZTXsS+urwmQ+xxxxxxL2md8aqVZtF4...
key2    vYQVP59KPHvBUqFcY3YP4Gl/GveV9HTnwIm0z+ZBvyHeuKHmxxxxxxxxxx+XIdZ2OnDY86m6Q...

You can see it here

find azure storage account key

Approach 3: Using Azure CLI

You can use Azure CLI to find your Azure Storage Access key using the below command.

az storage account keys list -g ResourceGroupname -n StorageAccountname

Example: Here, DEMORG1 is my Resource Group name, and demoggh is my Azure Storage account name.

az storage account keys list -g DEMORG1 -n demoggh

After executing the above Azure CLI command, I got the following output.

[
  {
    "keyName": "key1",
    "permissions": "FULL",
    "value": "1dMSmTL3GNTqBqpi+iSbfqDY/43rqthsWb/u1EVwiKZTXsS+urwmQ+xxxxxxxx2md8aqVZt
F4C+AStq2JC8g=="
  },
  {
    "keyName": "key2",
    "permissions": "FULL",
    "value": "vYQVP59KPHvBUqFcY3YP4Gl/GveV9HTnwIm0z+ZBvyHeuKxxxxxxxxxxx+XIdZ2OnDY86m
6QK+AStIWwqVg=="
  }
]

You can see it here

where can i find azure storage account key

Wrapping Up

In this article, we discussed what an Azure storage account access key is and how to obtain one using the Azure Portal, PowerShell, and Azure CLI. Thanks for reading this article.

You may also like the following articles below

  • How to Secure Azure Storage Account
  • Azure storage types
  • Azure Storage Explorer
  • How to Upload and Download a File From Azure Blob Storage Using C# and PowerShell
  • How to Create an Azure Free Account (Step-by-Step tutorial)
  • How To Get Azure Storage Account URL
Microsoft Azure
Rajkishore

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.

Azure Web App Tutorial
Benefits of Microsoft Azure
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure Function TypeScript
  • Azure DevOps Pricing
  • Why is Azure So Expensive? The Areas You Are Neglecting and Their Solutions
  • Azure Active Directory Basic for Education
  • Azure Stack Edge
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons
Azure
Virtual
Machine
By: Rajkishore
Azure Consultant
PDF

Free 25+ page PDF

Download free Azure Virtual Machine PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!

No spam, ever. You will also get new Azure tutorials by email. Unsubscribe any time. Privacy policy

Check your inbox

Your Azure Virtual Machine PDF is on its way to . Can't find it in a few minutes? Look in your Promotions or Spam folder.