AzureAzure Static Web AppsCompute

azurerm_static_web_app cost estimation

Managed hosting for static sites with serverless API backends. Priced as a flat monthly plan fee, with a genuinely free tier for small projects.

An azurerm_static_web_app hosts a static frontend (with optional serverless API via Functions) on a global CDN, with built-in CI/CD from your repo. The pricing is refreshingly simple: a flat monthly plan fee, not usage metering for the core service.

The Free plan costs nothing and covers 100 GB bandwidth/month, custom domains, and managed SSL, enough for personal projects, docs sites, and small apps. The Standard plan is a flat ~$9/app/month and adds higher bandwidth allowances, more custom domains, SLA-backed availability, and bring-your-own-Functions. There's no per-request or per-build charge in the core model; the plan tier is the whole decision.

c3x reads the sku_tier and prices the flat plan fee: zero for Free, ~$9/month for Standard. Bandwidth beyond the plan allowance and any linked Azure Functions on a separate plan bill on their own. Because Free is genuinely free, c3x correctly estimates many static sites at zero.

Terraform example

A minimal but realistic configuration that C3X can estimate.

resource "azurerm_static_web_app" "site" {
  name                = "marketing-site"
  resource_group_name = azurerm_resource_group.web.name
  location            = "eastus2"
  sku_tier            = "Standard"
  sku_size            = "Standard"
}

Pricing dimensions

What you actually pay for when you provision azurerm_static_web_app.

DimensionUnitWhat's being charged
Plan feeper app-monthFlat monthly fee by tier: Free ($0) or Standard (~$9/app). c3x reads sku_tier and prices the plan.
$0 Free, $9/month Standard
Excess bandwidthper GBBandwidth beyond the plan's included allowance. Usually small; usage-based.

Sample C3X output

Example output from c3x estimate (Standard plan):

azurerm_static_web_app.site
└─ Plan (Standard)            1  app-month    $9.00

OVERALL TOTAL                                $9.00

Optimization tips

Common ways to reduce azurerm_static_web_app cost without changing the workload.

Use the Free tier for personal and docs sites

100% for small sites

The Free plan includes 100 GB bandwidth, custom domains, and managed SSL at no cost. For low-traffic sites it's genuinely free, no reason to pay for Standard.

Move to Standard only when you need its features

$9/month until needed

Standard's ~$9/month buys SLA, more domains, higher bandwidth, and BYO Functions. Upgrade when you hit a Free-tier limit, not preemptively.

Watch the linked Functions plan

Separate Functions plan

If you attach a separate Azure Functions backend (rather than managed Functions), that Functions plan bills independently. Use the managed Functions included in the tier where it suffices.

FAQ

How does c3x estimate Static Web Apps cost?

It reads sku_tier and prices the flat plan fee: $0 for Free, ~$9/month for Standard. Excess bandwidth and any separately-linked Functions plan are usage-based or billed on their own resources.

Is the Free tier really free?

Yes. The Free plan includes 100 GB bandwidth/month, custom domains, and managed SSL certificates at no charge. c3x estimates a Free-tier app at zero.

What does Standard add for the ~$9/month?

An availability SLA, higher bandwidth allowances, more custom domains, and the ability to bring your own Azure Functions backend. It's a flat per-app fee, not usage-metered.

Are builds or requests charged?

No. The core service has no per-build or per-request charge. CI/CD builds from your repo and request serving are included in the plan fee.

Does a serverless API add cost?

Managed Functions included in the tier are covered by the plan. If you link a separate Azure Functions app, that bills on its own consumption or plan, which c3x prices as its own resource.

Related resources

Estimate this resource in your own Terraform

Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including azurerm_static_web_app.