Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| azure:qnd:azure_powershell [2022/10/11 18:44] – [Connect and Select] mgupton | azure:qnd:azure_powershell [2022/10/21 21:58] (current) – [Get Resources] mgupton | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| ====== Command Context ====== | ====== Command Context ====== | ||
| + | Get Azure tenants that there is an authenticated session for. | ||
| < | < | ||
| Get-AzTenant | select id,name | Get-AzTenant | select id,name | ||
| Line 40: | Line 41: | ||
| </ | </ | ||
| + | ====== Get Resources ====== | ||
| + | List all resources in the current subscription. | ||
| + | <code powershell> | ||
| + | Get-AzResource | ||
| + | </ | ||
| + | |||
| + | <code powershell> | ||
| + | Get-AzResource | select Name, | ||
| + | </ | ||
| ====== Loop Over All Subscriptions ====== | ====== Loop Over All Subscriptions ====== | ||