Setup Prerequisites
- Microsoft Entra Tenant
- Microsoft Entra Subscription
Install Azure PowerShell Module
Create Resource Group
Create a Static Web App (Later we will be able to deploy a template)
Navigate to: Resource groups > rg-SmashGrade > + Create
- Select your Subscription
- Your created Resource Group
- define a name (starting with stapp-* according to the best practices https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations)
- select Azure Staging Region
- Sign in to GitHub an request access token for SmashGrade GitHub Repo
- Select the Organization, Repo and Branch
- Build Presents -> React
- App location
/
- Api location: (default)
- Output location: 'dist'
Short Overview
Overview Page
On the Overview section you have all the important stuff like the URL for the web page itself or the GitHub Action URL.
Define a password
This will result in a password prompt each time you open the page
Artifacts created by Azure in GitHub
GitHub Action
Secrets for GitHub Actions
Workflow File:
Create Web App
Create a new Web App:
Set Deployment settings:
Review + create
Create the Git Actions as defined in the following Branch: https://github.com/SmashGrade/SmashGrade-App/tree/%2332-deploy-pr-to-azure-slot