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.
Find storage account keys easily with a little PowerShell and AzureRM.
April 30, 2016
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
You May Also Like