How awslabs/resource-discovery-for-azure works
This PowerShell tool inventories Azure subscriptions and produces consolidated HTML/JSON reports, including historical metrics. Its documented workflow starts with the all-subscriptions runner; optional sharing features include obfuscation and selective reveal. The README describes parallel execution and resumable runs, but no source excerpts were provided, so internal calls and state handling cannot be verified; domain collector links are therefore marked unverified.
Main entry points: ResourceInventory.ps1 Resource inventory · Run-AllSubscriptions.ps1 Subscription runner · Run-AllSubscriptions.Stream.ps1 Parallel runner · Analytics Analytics services
Components 20
Run orchestration
- Subscription runner
Run-AllSubscriptions.ps1 - Parallel runner
Run-AllSubscriptions.Stream.ps1
Azure inventory
- Resource inventory
ResourceInventory.ps1 - Inventory functions
Functions - Analytics services
Services/Analytics - Compute services
Services/Compute - Container services
Services/Containers - Data services
Services/Data - Infrastructure services
Services/Infrastructure - Integration services
Services/Integration - Networking services
Services/Networking - Storage services
Services/Storage - Historical metrics
Extension/Metrics.ps1
Reports and sharing
- HTML summary
Extension/Summary.ps1 - Consolidated report
Build-MainSummaryFromZip.ps1 - Obfuscation
Functions/RevealObfuscation.Functions.ps1 - Selective reveal
Reveal.ps1
Other components
- Operator
- Azure services
- Azure Monitor
Connections 17
- Operator → Subscription runner: runs
README.md - Subscription runner → Resource inventory: inventories subscriptions
README.md - Resource inventory → Azure services: reads resources
- Resource inventory → Analytics services: may collect
- Resource inventory → Compute services: may collect
- Resource inventory → Container services: may collect
- Resource inventory → Data services: may collect
- Resource inventory → Infrastructure services: may collect
- Resource inventory → Integration services: may collect
- Resource inventory → Networking services: may collect
- Resource inventory → Storage services: may collect
- Resource inventory → Azure Monitor: reads metrics
- Subscription runner → Parallel runner: may parallelize
- Subscription runner → HTML summary: generates reports
README.md - Subscription runner → Consolidated report: produces archive
README.md - Subscription runner → Obfuscation: can mask details
README.md - Operator → Selective reveal: runs selectively
README.md