Search code examples
azure-storage

Is there a way to get the key for Classic Azure Storage Account using powershell?


I think Get-AzureRmStorageAccountKey doesn't work with Classic Azure Storage Account. Get-AzureStorageAccount can return classic storage account, but it won't return the key.

thanks. Lidong


Solution

  • You can use cmdlet : Get-AzureStorageKey

    Get-AzureStorageKey -StorageAccountName "ContosoStore01"