Get storage keys using PowerShell with AzureRM

Find storage account keys easily with a little PowerShell and AzureRM.

John Savill

April 30, 2016

1 Min Read
Get storage keys using PowerShell with AzureRM

Q. How can I get Azure Storage Account keys using PowerShell with Azure Resource Manager?

A. In article http://windowsitpro.com/azure/use-powershell-obtain-azure-storage-account-key I covered getting storage account keys using PowerShell with Azure Service Manager accounts. For Azure Resource Manager the PowerShell is the following:

$storAccount = 'storaccount'$rgName = 'resgroup'$storKey = (Get-AzureRmStorageAccountKey -Name $storAccount -ResourceGroupName $rgName ).Key1

 

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like