{"id":78567,"date":"2016-06-02T11:59:20","date_gmt":"2016-06-02T18:59:20","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/?p=78567"},"modified":"2019-02-18T09:10:41","modified_gmt":"2019-02-18T16:10:41","slug":"powertip-list-all-azure-resource-manager-storage-accounts-by-using-powershell","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-list-all-azure-resource-manager-storage-accounts-by-using-powershell\/","title":{"rendered":"PowerTip: List all Azure Resource Manager storage accounts by using PowerShell"},"content":{"rendered":"<p><strong>Summary<\/strong>: Use the Azure Resource Manager cmdlets to identify available storage accounts.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/> I\u2019m working a client site, and they\u2019d like me to document the configuration of their Azure Resource Manager environment. I\u2019m in desperate need of\u00a0a list of the storage accounts. Help me, please?<\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/> One cmdlet and you\u2019re done. Just use the <strong>Get-AzureRMStorageAccount<\/strong> cmdlet. If you run this, you\u2019ll only get the list, but you can export it to a .csv file named StorageAccounts.csv. Here is an example:<\/p>\n<p style=\"padding-left: 90px\"><code>Get-AzureRMStorageAccount | Export-CSV StorageAccounts.csv<\/code><\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\"The Doctor\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Use the Azure Resource Manager cmdlets to identify available storage accounts. I\u2019m working a client site, and they\u2019d like me to document the configuration of their Azure Resource Manager environment. I\u2019m in desperate need of\u00a0a list of the storage accounts. Help me, please? One cmdlet and you\u2019re done. Just use the Get-AzureRMStorageAccount cmdlet. If [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[568,639,641],"tags":[56,356,154,45],"class_list":["post-78567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hey-scripting-guy","category-powertip","category-windows-powershell","tag-guest-blogger","tag-powertip","tag-sean-kearney","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Use the Azure Resource Manager cmdlets to identify available storage accounts. I\u2019m working a client site, and they\u2019d like me to document the configuration of their Azure Resource Manager environment. I\u2019m in desperate need of\u00a0a list of the storage accounts. Help me, please? One cmdlet and you\u2019re done. Just use the Get-AzureRMStorageAccount cmdlet. If [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/78567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=78567"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/78567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=78567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=78567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=78567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}