Skip to content

ADR-005: Cost guardrails for a free-trial lab

  • Status: Accepted
  • Date: 2026-11-25
  • Deciders: the lab

Context

The subscription is an Azure free trial with a target of about USD 50 a month once credit is exhausted. The enterprise landing zone reference architecture includes several resources that cost more than that on their own, in Australia East list prices checked against the Azure retail feed on 25 November 2026:

Resource List price used for this decision Rough month at 730 hours
Azure Firewall Standard deployment USD 1.25 per hour, plus USD 0.016 per GB, plus a capacity-unit meter at USD 0.07 per hour about USD 910 before data
Azure Firewall Basic deployment USD 0.395 per hour about USD 290
VPN gateway VpnGw1 USD 0.19 per hour, plus a public IP about USD 140 plus IP
Bastion Basic USD 0.19 per hour, plus a public IP about USD 140 plus IP
DDoS Network Protection Flat monthly plan, thousands of USD. Confirm on the pricing page before any use. far over USD 50
Standard public IPv4 USD 0.005 per hour about USD 3.65

Log Analytics Analytics Logs in Australia East are USD 0 for the first 5 GB per billing account per month and USD 3.34 per GB after that. A daily cap of 0.1 GB cannot cross 5 GB in a month.

Decision

The default parameter file deploys none of the expensive resources. Modules for firewall, VPN gateway, Bastion, and DDoS exist so the shape is visible, and infra/main.bicep refuses to deploy them unless confirmExpensiveSpend is true. CI fails if a parameter file sets those flags or confirmExpensiveSpend to true.

The default stack does deploy:

  • a Log Analytics workspace on the pay-as-you-go Analytics Logs SKU, 30-day retention, 0.1 GB daily cap
  • virtual networks, subnets, NSGs, and peerings with no virtual machines
  • one private DNS zone (USD 0.50 per month for a zone in the first 25)
  • policy, custom roles, and a budget of 50 in the subscription billing currency

No Defender for Cloud paid plan, no Sentinel, no Private Link endpoints, no NAT Gateway, no Azure Firewall, no flow logs, no commitment tier on Log Analytics.

Numbers and the arithmetic live in docs/cost-model.md. Update that file in the same pull request as any change that adds a priced resource.

Consequences

  • The interesting enterprise controls (firewall transit, private-only outbound, DDoS, Bastion) are explained and not experienced live. That is a deliberate trade.
  • A daily cap drops log data once it is hit. For an empty lab that is acceptable. Do not copy a 0.1 GB cap into a client management subscription.
  • The budget notifies. It does not stop spend. Azure budgets are not a circuit breaker.

Alternatives considered

  • Deploy Firewall Basic "because it is the cheap SKU". Rejected. About USD 290 a month is still several times the guardrail.
  • Skip Log Analytics. Rejected. A landing zone without a place to send diagnostics does not teach the management design area, and the capped workspace should stay inside the free ingestion allowance.