How can I run a powershell script on an entire Azure management group to span multiple subscriptions? I need to export resource inventories from multiple subscriptions with a single run in the same file.
Asked
Active
Viewed 115 times
1 Answers
0
You will need to use Azure Resource Graph which supports PowerShell, CLI and Azure SDK for .NET.
Search-AzGraph -Query "Resources | summarize count()"
https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-powershell

Ken W - Zero Networks
- 3,533
- 1
- 13
- 18