-
Notifications
You must be signed in to change notification settings - Fork 2
Cost Analysis
The cost analysis command provides AI-driven cost estimation for the architecture designed during the design stage. The cost-analyst agent examines the services, SKUs, and deployment plan, then produces estimated monthly costs across three pricing tiers.
az prototype analyze costs [options]
| Parameter | Type | Default | Description |
|---|---|---|---|
--table |
flag | false |
Display only the cost summary table (no file save). |
--report |
flag | false |
Display the full detailed cost report. |
--refresh |
flag | false |
Force fresh analysis, bypassing cached results. |
--json / -j
|
flag | false |
Output machine-readable JSON instead of formatted display. |
The cost-analyst agent produces estimates across three tiers to help teams understand the cost spectrum:
| Tier | Description |
|---|---|
| Small (S) | Minimal SKUs, lowest redundancy, suitable for development and early prototyping. |
| Medium (M) | Balanced SKUs with moderate redundancy, suitable for staging and shared environments. |
| Large (L) | Production-grade SKUs with full redundancy and scaling, suitable for production workloads. |
Each tier includes per-service cost breakdowns and a total estimated monthly cost. The agent considers the specific Azure services, regions, and configurations from the architecture design.
Displays the cost summary table (service names, SKUs, and estimated monthly costs per tier) and saves the full report to concept/docs/COST_ESTIMATE.md.
Displays only the cost summary table in the terminal. Does not save a file. Useful for quick cost checks without side effects.
Displays the full detailed cost report including executive summary, per-service breakdowns, tier definitions, optimization tips, and disclaimers.
Machine-readable output via the global --json flag. Returns a structured JSON dict with a content field containing the full report text. No console output. Suitable for piping into other tools or scripts.
Cost analysis results are cached in the project state. Subsequent runs of az prototype analyze costs return the cached report without re-invoking the AI agent. Use --refresh to force a fresh analysis -- for example, after modifying the architecture in a design re-run.
The cost-analyst built-in agent is responsible for cost estimation. It:
- Reads the architecture design, service list, and deployment plan
- Maps each service to Azure pricing based on the selected SKUs
- Produces per-service and aggregate estimates across S/M/L tiers
- Does not include standards injection (
_include_standards = False) to keep the prompt focused on pricing data
The agent operates on the design output; the design stage must be completed before cost analysis can run.
Show cost summary table and save full report (default):
az prototype analyze costsShow only the cost summary table (no file save):
az prototype analyze costs --tableShow the full detailed report:
az prototype analyze costs --reportForce a fresh analysis after design changes:
az prototype analyze costs --refreshGet machine-readable JSON output:
az prototype analyze costs --jsonGetting Started
Stages
Interfaces
Configuration
Agent System
Features
- Backlog Generation
- Cost Analysis
- Error Analysis
- Docs & Spec Kit
- MCP Integration
- Knowledge System
- Escalation
Quality
Help
Policies — Azure
AI Services
Compute
Data Services
- Azure SQL
- Backup Vault
- Cosmos Db
- Data Factory
- Databricks
- Event Grid
- Event Hubs
- Fabric
- IoT Hub
- Mysql Flexible
- Postgresql Flexible
- Recovery Services
- Redis Cache
- Service Bus
- Stream Analytics
- Synapse Workspace
Identity
Management
Messaging
Monitoring
Networking
- Application Gateway
- Bastion
- CDN
- DDoS Protection
- DNS Zones
- Expressroute
- Firewall
- Load Balancer
- Nat Gateway
- Network Interface
- Private Endpoints
- Public Ip
- Route Tables
- Traffic Manager
- Virtual Network
- Vpn Gateway
- WAF Policy
Security
Storage
Web & App
Policies — Well-Architected
Reliability
Security
Cost Optimization
Operational Excellence
Performance Efficiency
Integration