Deploying a GitHub Repo to Azure Static Web Apps for FREE!
Deploying your static website or frontend app shouldn’t be hard. Thanks to Azure Static Web Apps, you can link your GitHub repository and automate deployments every time you push code, all for free! In this post, you’ll learn why this is useful, real-world scenarios where it can be used, and a step-by-step guide to set it up.
🌟 Why Link GitHub to Azure Static Web Apps?
When you connect your GitHub repository to Azure Static Web Apps, you get:
-
Automatic CI/CD: Push code → auto-deploy to Azure.
-
Free Hosting: Host static sites (HTML, JS, CSS, React, Vue, etc.) with SSL and global CDN.
-
Custom Domains: Easily assign your own domain name.
-
Preview Environments: Get a temporary live preview for every pull request.
-
Seamless Backend Support: Easily integrate with Azure Functions for serverless APIs.
💡 Real-Life Use Cases
-
E-Commerce Landing Pages: Build and deploy marketing pages with React or plain HTML.
-
Project Documentation Sites: Use static site generators like Hugo, Docusaurus, MkDocs, or Jekyll.
-
Portfolio or Resume Websites: Developers and students can showcase their work with zero backend hassle.
-
Dashboard Frontends: Deploy a frontend that consumes APIs or connects to Azure Functions.
🛠️ How to Link GitHub to Azure Static Web Apps
Here’s a step-by-step guide to get your repo deployed to Azure Static Web Apps:
- Push Your Static Site to GitHub Make sure your static website or frontend app is already in a GitHub repo.
- Go to Azure Portal and Create a Static Web App.
Visit https://portal.azure.com
Search for Static Web Apps > Click Create.
Fill in the basic info like subscription, resource group, and app name.
- Connect Your GitHub Repo Under Deployment Details, choose GitHub as your source.
Sign in and authorise Azure to access your GitHub repos.
Select the repository and branch you want to link.
- Set Build Configuration Choose the correct framework preset (eg. React, Vue, Blazor).
Specify build and output folders (eg. build for React apps).
- Review and Create.
Click “Review + Create”, wait a few moments, and your app is deployed!
You’ll get a public URL like https://yourappname.azurestaticapps.net
- Push to Deploy.
From now on, every push to your GitHub branch will auto-deploy your site!
Key Limitations for Azure Static Web Apps (Free Tier - 2025)
Feature | Free Tier Limit |
---|---|
Bandwidth | 100 GB per month |
Storage | 250 MB (single environment) |
Custom domains | Yes (up to 2 custom domains) |
SSL certificate | Free and included |
Apps | 10 |
Authentication | Built-in GitHub / Azure AD auth |
Environments | 1 production + 3 preview environments |
API backend | Supports Azure Functions |
By linking your GitHub repo to Azure Static Web Apps, you save time, get reliable hosting, and adopt DevOps practices with zero config. Whether you’re building portfolios, product landing pages, or full frontend apps, this combo gives you speed and scale, for free!