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

az storage account keys list

January 24, 2025 by Rajkishore

Recently, I got the requirement to retrieve the lists of storage account keys from one of my storage accounts. In this article, let me walk you through the syntax and usage of the az storage account keys list Azure CLI command with specific examples.

Table of Contents

  • az storage account keys list
    • Syntax
    • Example

az storage account keys list

This Azure CLI command helps you to get the lists of Azure storage account keys under a specified Azure storage account.

Syntax

Below is the syntax of the Azure CLI command for the Az storage account keys list.

az storage account keys list --resource-group YourResourceGroupName --account-name Yourstorageaccountname
az storage account keys list -g YourResourceGroupName -n Yourstorageaccountname

Example

The below example will retrieve the keys lists of the azureusanew storage account that belongs to the

az storage account keys list --resource-group MyNewResGrp --account-name azureusanew

After executing the above command, I got the expected output successfully as shown below.

[
  {
    "creationTime": "2024-11-17T14:21:08.111950+00:00",
    "keyName": "key1",
    "permissions": "FULL",
    "value": "JgWLDQKquntT4jHuj/0FkviJaw/8Y/xgMxcvMdyE8rLn3h9kfUuJgIkq8slnkm+QBI64S3U6t2/s+AStvypiww=="
  },
  {
    "creationTime": "2024-11-17T14:21:08.111950+00:00",
    "keyName": "key2",
    "permissions": "FULL",
    "value": "JlBMGRx9VHaeYOhmON62FKP9jIFbSOE5m1kNnxc/0ep5fMKeV8gAzY/GmGei7PmLYLYkHrXMXMfE+AStRiCfuw=="
  }
]

You can see the same output as shown in the screenshot below.

az storage account keys list

Alternatively, You can execute the az storage account keys list command like the one below.

az storage account keys list -g MyNewResGrp -n azureusanew

After executing the above command, I got the same expected output as shown in the screenshot below.

az storage account keys

You may also like following the articles below

  • How To Restore Deleted Storage Account In Azure
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.

az group update
Az storage account keys renew
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure synapse Analytics Tutorial
  • Azure VM Backup Pricing
  • Azure VM
  • What Is Edge Location In AWS
  • DP-300 Certification
  • 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.