feat: 9 new discovery queries + per-resource Activity Log enrichment#36
Merged
Daren9m merged 1 commit intoMar 20, 2026
Conversation
…hment New KQL queries (#29, #22): - 12: Empty App Service Plans (zero apps deployed, still billing) - 13: Orphaned NICs (not attached to any VM) - 14: Storage Account inventory (198 in Procentrix Dev) - 15: Application Insights inventory (111 instances, 41% untagged) - 16: Log Analytics Workspace inventory (retention cost tracking) - 17: Orphaned Route Tables (no subnet associations) - 18: Empty Load Balancers (no backend pool members) - 19: Key Vault inventory (soft-delete, purge protection status) - 20: SQL Database inventory (tier, size, status) Per-resource Activity Log enrichment (#30): - Build per-resource last-touch index from Phase 2 activity logs - Export resource-last-touch.csv with last operation, caller, days since touch - Track dormant resources (60+ days) at resource level, not just RG level - Zero additional API cost — reuses existing Phase 2 data XLSX report updated with 10 new worksheet mappings. Addresses #29, #22, #30 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
High-impact v0.4.0 items — expands discovery from 11 to 20 KQL queries and adds per-resource last-touch tracking.
New KQL Queries (9)
Per-Resource Activity Log Enrichment
resource-last-touch.csv: ResourceId, LastTouchTime, DaysSinceTouch, LastOperation, LastCallerXLSX Report
Test Plan
Invoke-TenantDiscovery.ps1— verify all 20 queries executeresource-last-touch.csvgenerated with per-resource data.\reporting\Export-DiscoveryReport.ps1 -ReportDir .\reports\{latest} -CostCsv .\reports\cost-analysis.csvAddresses #29, #22, #30
🤖 Generated with Claude Code