Skip to content

fix: Subscription overview + Cost Management API#35

Merged
Daren9m merged 1 commit into
claude/azure-tenant-cleanup-strategy-dHLP3from
feature/v0.2.0-remaining-fixes
Mar 20, 2026
Merged

fix: Subscription overview + Cost Management API#35
Daren9m merged 1 commit into
claude/azure-tenant-cleanup-strategy-dHLP3from
feature/v0.2.0-remaining-fixes

Conversation

@Daren9m
Copy link
Copy Markdown
Collaborator

@Daren9m Daren9m commented Mar 20, 2026

Summary

Final two fixes to close out the v0.2.0 — Foundation & Safety milestone.

Test Plan

  • Run Invoke-TenantDiscovery.ps1 — verify query 10 shows both subscriptions
  • Verify Phase 3 returns cost data for Procentrix Dev (was previously BadRequest)
  • Verify cost-by-resource-group.csv and top-20 CSV generated
  • Verify summary.json includes TotalCostLast30Days

Closes #33, closes #20

🤖 Generated with Claude Code

…Management

Subscription overview (#33):
- Join resourcecontainers to include subscriptions with zero resources
- Add subscription name column
- Zero-resource subscriptions now show with 0 counts

Cost analysis (#20):
- Replace Get-AzConsumptionUsageDetail (fails on MSDN/PayG) with
  Cost Management Query API via Invoke-AzRestMethod
- Server-side aggregation by resource group (faster, less data)
- Works across all subscription types
- No additional module required (uses Az.Accounts only)

Closes #33, closes #20

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Daren9m Daren9m merged commit cd08ec7 into claude/azure-tenant-cleanup-strategy-dHLP3 Mar 20, 2026
@Daren9m Daren9m deleted the feature/v0.2.0-remaining-fixes branch March 20, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Subscription overview query returns only 1 row instead of per-subscription breakdown fix: Replace Consumption API with Cost Management Query API

1 participant