Get a list of all Resources in my Azure Subscription (Powershell Preferably)

后端 未结 7 1551
余生分开走
余生分开走 2020-12-07 01:12

I have an azure subscription and I\'m trying to write a powershell script to automatically get a list of all the resources (VMs, Storage Accounts, Databases, etc) that I cur

7条回答
  •  执笔经年
    2020-12-07 01:43

    Since you said PowerShell "preferably", I'm going to assume other options are still maybe useful? You can go to http://manage.windowsazure.com, and click on All Items. Then you can copy/paste the table into Excel. You'll have to do it once per page, but it's still faster and more comprehensive than having to run a variety of cmdlets. That's assuming you have at least a few types of resources and not more than a few pages of resources.

    You have to take 30 seconds to do a little cleanup in Excel, but for what I'm trying to do right now, this was definitely the best & fastest solution. I hope it's useful to you (or someone else) too.

提交回复
热议问题