# Cost Optimization Report Template Use `create_file` with path `output/costoptimizereport.md` and the following structure: ```markdown # Azure Cost Optimization Report **Generated**: ## Executive Summary - Total Monthly Cost: $X (ACTUAL DATA from Cost Management API) - Top Cost Drivers: [List top 3 services with costs] - Potential Savings: $Y/month ## Cost Breakdown by Service | Service | Cost (USD) | % of Total | |---------|-----------|------------| | ... | ... | ... | | **Total** | **$X** | **100%** | ## Free Tier Analysis [Resources operating within free tiers] ## Orphaned Resources (Immediate Savings) [From azqr — resources that can be deleted immediately] ## Optimization Recommendations ### Priority 1: High Impact, Low Risk - ACTUAL cost: $X/month - ESTIMATED savings: $Y/month - Commands to execute ### Priority 2: Medium Impact, Medium Risk - ACTUAL baseline, ACTUAL metrics, VALIDATED pricing - ESTIMATED savings with commands ### Priority 3: Long-term Optimization [Reserved Instances, Storage tiering] ## Total Estimated Savings - Monthly: $X | Annual: $Y ## Implementation Commands [Safe commands with approval warnings] ## Validation Appendix - Cost Query Results: `output/cost-query-result.json` - Pricing Sources: [Links] ``` ## Portal Link Format Include Azure Portal links for all resources using this format: ```text https://portal.azure.com/#@/resource/subscriptions//resourceGroups//providers////overview ``` ## Audit Trail Save cost query results to `output/cost-query-result.json` for reproducibility. ## Cleanup After generating the report, remove temporary files: ```powershell Remove-Item -Path "temp" -Recurse -Force -ErrorAction SilentlyContinue ```