Reputation: 608
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
Upvotes: 0
Views: 886
Reputation: 556
You can use cmdlet : Get-AzureStorageKey
Get-AzureStorageKey -StorageAccountName "ContosoStore01"
Upvotes: 2