Skip to content

Creating a Static Web App

Nathan edited this page Nov 25, 2020 · 5 revisions

Creating a Static Web App

When creating a new static web app, there are two options that you can select to deploy your project.

Publish local code to a new GitHub repository or Use existing GitHub repository


Publish local code to a new GitHub repository

  • If this is selected, you will be prompted for a workspace where your app's code exists.

    In a basic create, if there is only one folder opened in your workspace, that folder is automatically selected

  • Select the organization to create the new repository in
  • Provide a name for the new GitHub repository
  • Select is the repo is private or public
  • Provide a shortname for the remote repo

    In a basic create, this will default to "origin" unless the "origin" remote already exists

  • If no .gitignore file exists, select which files to include in the repository

    This will generate a .gitignore file in the root of your project


Use an existing GitHub repository

  • If this selected, you will prompted for which organization and repository you would like to deploy

    In a basic create, the branch to deploy is automatically the default branch

    In a basic create, if your currently opened project is connected to a GitHub repo that you own, then it will automatically select this repository for you.
    If this behavior is not desired, then you can use advanced creation or close the current project


Creating the Azure Static Web App

Regardless of which creation method you pick, you will then be prompted to create the static web app:

  • Provide a name for the static web app

    If you need to specify the resource group, please use advanced creation

  • Pick a build preset. Learn more here

  • Pick a location for your Azure resources. Typically, you want to pick a location geographically near you

Clone this wiki locally