Azure Static Web Apps
Azure Static Web Apps needs a card, the free plan hosts up to 10 apps and 100 GB of bandwidth a month, and Azure cannot serve a site that passes that quota.
Azure Static Web Apps builds and hosts a static front end from a GitHub repository and can add serverless API routes through Azure Functions. It is aimed at hobby and personal sites on the Free plan.
Is it a fit?
Good fit
Use it for a static site or single-page app in a GitHub repository, with a small serverless API, when you already have or accept an Azure account.
- personal sites
- documentation sites
- single-page apps
- Azure learners
Not a fit
Skip it for production sites that need an SLA, for sites that may pass the monthly bandwidth quota, or for server-side rendered apps that need a long-running server.
- you need an SLA
- traffic may pass the bandwidth quota
You connect a GitHub repository, and a GitHub Actions workflow builds and deploys your site. The quickstart uses the Azure Static Web Apps extension in Visual Studio Code, so it suits developers who already work in that editor. Azure sign-up asks for a phone number and a credit or debit card (not prepaid) to verify your identity. It may place a temporary one-dollar hold, and it does not charge you unless you move to pay-as-you-go.
What the free plan gives you
The Free plan is for hobby and personal projects. It includes 100 GB monthly bandwidth and 10 apps per subscription, with 2 custom domains per app and free SSL. Each app gets 500 MB of total storage across all environments, with 250 MB for a single environment. It also allows 3 preview environments, 15,000 files, and a request size of 30 MB.
Pricing says you can add serverless APIs with Azure Functions and gives 1 million free executions. Its footnote applies Azure Functions Consumption rates to integrated APIs, so the static-site bandwidth cap does not make all API use free. The quotas page allows 25 custom-role invitations on Free; function-based role assignment, private endpoints, and IP range restrictions are unavailable. The Standard plan raises storage and domain counts, adds an SLA, and is metered hourly from per-second usage.
When you hit a limit
The pricing FAQ is direct about this. If a Free plan site goes over the 100 GB quota, Azure cannot serve your site. There is no overage billing on Free, because overage bandwidth is listed as unavailable. Standard apps that pass the quota are billed at overage rates instead.
To get past the Free caps, upgrade to the Standard plan. The pricing page links a guide for the upgrade. Storage limits and the file count are quotas for each app, so a larger site can also hit those before it hits the bandwidth cap.
Gotchas
- The Free plan has no SLA. Microsoft describes it as intended for hobby and personal use.
- GitHub Actions and Packages store your build artifacts, and they follow their own GitHub storage quotas.
- The quickstart asks you to sign in to both Azure and GitHub, and GitHub may ask you to enable Actions on the repository.
Alternatives in this atlas
- Cloudflare Pages: when you want static hosting without an Azure account or card.
- GitHub Pages: when a plain static site from a repository is enough.
- Netlify: when you want preview deploys and forms without Azure.
Questions people ask
Is Azure Static Web Apps free?
Yes, the Free plan costs nothing. It includes 100 GB of bandwidth per subscription each month and up to 10 apps.
What happens when I go over the Azure Static Web Apps free quota?
On the Free plan, Azure cannot serve your site once it passes the 100 GB quota. Standard apps are billed at overage rates instead.
Can I use a custom domain on Azure Static Web Apps free?
Yes. The Free plan allows 2 custom domains per app, with free SSL certificates.
How to get started
- Have an Azure account, a GitHub account, Visual Studio Code, and Git installed.
- Generate a repository from a GitHub template, such as vanilla-basic, and name it my-first-static-web-app.
- Clone the repository and open it in Visual Studio Code.
- Install the Azure Static Web Apps extension from the Extensions view.
- Press F1, run Azure Static Web Apps: Create static web app, and sign in to Azure and GitHub when asked.
- Pick your subscription, enter the app and build locations, then right-click the project and choose Browse Site.
Other free hosting options
Same category, safest first.