azure:qnd:azure_powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
azure:qnd:azure_powershell [2022/10/12 14:38] – [Command Context] mguptonazure:qnd:azure_powershell [2022/10/21 21:58] (current) – [Get Resources] mgupton
Line 41: Line 41:
 </code> </code>
  
 +====== Get Resources ======
 +List all resources in the current subscription.
 +<code powershell>
 +Get-AzResource
 +</code>
 +
 +<code powershell>
 +Get-AzResource | select Name,Type,ResourceGroupName,SubscriptionId | Export-Csv resources.csv
 +</code>
  
 ====== Loop Over All Subscriptions ====== ====== Loop Over All Subscriptions ======
  • azure/qnd/azure_powershell.1665585489.txt.gz
  • Last modified: 2022/10/12 14:38
  • by mgupton