Skip to content

Azure - Create a Static Web App

Follow this runbook to create an Azure Static Web App.

Create Static Web App

In the top search bar type static web apps.

Select Static Web Apps under Services.

static-web-apps-search

To create a Static Web App, select + Create.

static-web-apps-create

Basics

Project Details

Choose a Subscription.

Choose a Resource group.

Use the Create new link to create a new resource group.

static-web-apps-project-details

Static Web App Details

Set the Name.

static-web-apps-app-details

Hosting Plan

Choose Plan type of either Free or Standard.

static-web-apps-plan

Azure Functions and Staging Details

Choose a Region for Azure Functions API and staging environments.

Whatever region is closest to your location.

static-web-apps-location

Deployment Details

At the time of writing, only GitHub has the ability to have staging environments for an app, such as dev/test.

GitHub

Follow any sign in instruction if required for GitHub.

Choose the Organization.

Choose the Repository.

Choose the Branch.

static-web-apps-github

Azure DevOps

Follow any sign in instruction if required for Azure DevOps.

Choose the Organization.

Choose the Project.

Choose the Repository.

Choose the Branch.

static-web-apps-devops

Build Details

Choose the Build Presets.

If no framework is required for the web app, set it to Custom.

Set App location to the folder in your repository with the app code.

Set to / if it is the entire repository.

If using Azure Functions, set Api Location.

If required, set Output Location.

The path of your build output relative to your apps location. Setting a value of 'build' when your app location is set to '/app' will cause the content at '/app/build' to be served.

static-web-apps-build

Select Next : Tags >.

Tags

Enter tag Names & Values.

static-web-apps-tags

Select Next : Review + create >.

Review + create

Confirm the Details.

Select Create.

static-web-apps-review

Overview

The deployment should take < 1 minute.

Once complete, select Go to resource.

The overview page should look like:

static-web-apps-overview

The app may still be being built by the pipelines within GitHub/Azure DevOps. Use the link within the information banner above to monitor progress.