Skip to main content

Cost Estimation

TL;DR — Git-Ape estimates monthly costs for every resource before deployment by querying the Azure Retail Prices API. No surprises.

How It Works​

The azure-cost-estimator skill:

  1. Parses the ARM template to identify resource types, SKUs, and regions
  2. Queries the Azure Retail Prices API for current retail pricing
  3. Calculates estimated monthly costs per resource
  4. Produces a formatted breakdown with totals

Example Output​

ResourceTypeSKURegionMonthly Cost
func-api-dev-eastusFunction AppConsumption (Y1)East US$0.00
stfuncapidev8k3mStorage AccountStandard LRSEast US$2.40
appi-api-dev-eastusApplication InsightsPay-as-you-goEast US$2.30
log-api-dev-eastusLog AnalyticsPay-as-you-goEast US$2.76
Total$7.46/mo
tip

Costs are estimates based on retail pricing. Actual costs depend on usage patterns, reserved instances, and enterprise agreements.

When It Runs​

Cost estimation runs automatically as part of the deployment workflow:

  1. Template generated → Cost estimator invoked
  2. Security gate checked
  3. Cost shown to user in the approval prompt
  4. User approves (or requests changes)

You can also invoke it directly:

/azure-cost-estimator