0

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

lidong
  • 556
  • 1
  • 4
  • 20

1 Answers1

2

You can use cmdlet : Get-AzureStorageKey

Get-AzureStorageKey -StorageAccountName "ContosoStore01"
  • According to this: https://stackoverflow.com/a/34963304/669692 For classic resources you need to precede it with Add-AzureAccount and Select-AzureSubscription – Andrzej Martyna Oct 08 '18 at 15:11