Pre-reqs:
The reason a fork is required is due to Azure Static WebApps having a slightly usual deployment model, after creating the resource in Azure, a GitHub Actions workflow is automatically created (by ARM) in the repo containing the app code, this workflow carries out the task of building/bundling and deploying the app.
If you were to work from a clone, the deployment would try to create this workflow in my repo, which would fail.
main.bicep
and uses modules for the various child resources.deploy.sh
this does various checks and configuration handling.az deployment sub create
as a subscription level template, that way the resource group can also be defined in the template.az staticwebapp appsettings set
does not function as intended. A workaround has been found using az rest --method put
From the root of the project run
make deploy GITHUB_TOKEN= \
GITHUB_REPO= \
AZURE_RESGRP= \
AZURE_REGION= \
AZURE_PREFIX=
Note when picking a value for AZURE_PREFIX, use something other than βchatrβ as that will result in resource name clash