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

后端 未结 7 1526
余生分开走
余生分开走 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:48

    Adding to @Gaurav's answer (and related to your comment about SQL database enumeration): You can enumerate all of your databases, on a per-server basis, in a few easy steps.

    First, enumerate all of the SQL Database servers in your subscription:

    enter image description here Then, for each server, create a connection context and enumerate the databases. Note that, with the Get-Credentials cmdlet, I was prompted to enter a username + password via a popup, which I don't show here. For demonstration purposes, I created a brand new server, with only a master database, to show what the output looks like:

    enter image description here

    0 讨论(0)
提交回复
热议问题