Dokumentationen

Static Web Apps

Microsoft Azure Static Web Apps

Microsoft Azure Static Web Apps

A service that automatically builds and deploys full-stack web apps.

Accelerate your app development with managed global availability for static content hosting and dynamic scale for integrated serverless APIs. Experience high productivity with a tailored local development experience, continuous integration and continuous delivery (CI/CD) workflows to build and deploy your app, and unified hosting and management in the cloud.

Features

The list of features for Azure Static Web Apps is extensive and illustrates the wide range of possibilities with this service. Here is a selection of the most important features with direct links to the product documentation, where they are described in detail:

Quickstart

Basically, deploying an Azure Static Web App consists of two steps:

  1. Infrastructure setup (provisioning)
  2. Publishing the web application (deployment)

In the first step, provisioning, the Azure Static Web App is created, e.g., a new resource of the Azure Static Web App type is added to an Azure resource group. This can be done in various ways:

In the second step, deployment, the web application is uploaded to the Azure Static Web App. There are also various options here:

Automated deployment with GitHub Actions is very convenient, as the web application is automatically published with every change to the source code, e.g., when committing to the main branch. The required workflow file is automatically created as a commit in the web application's repository in the above provisioning scenarios, provided the GitHub repository containing the web application is specified in that step. An interactive login to GitHub is performed for this. It is also possible to automate this step with a personal access token (PAT).

Project Examples

The following projects follow official tutorials and demonstrate various options for provisioning and deploying Azure Static Web Apps. The examples can serve as templates for your own projects.

Project Provisioning Deployment Comment
Simple static website Azure CLI SWA CLI with optional custom domain
Simple static website Terraform GitHub Actions with optional custom domain
React-based website mit API Azure CLI GitHub Actions
Website based on Hugo Azure CLI GitHub Actions
Website based on MkDocs Terraform GitHub Actions