Azure Static Web Apps are fantastic for hosting simple html pages, such as your "down" pages you point Azure traffic manager to when you want to do some site maintenance on your main site.
The problem with Azure static web apps is you cant upload your certificate to them, and if you use the free one, after exactly 6 months, the certificate will try to renew and fail, because DNS is pointing the custom domain to your main site. Next time you want to flip traffic manager to your down pages, you will get an SSL error.
The beauty of Azure static web apps is you can just point it to a github or Azure git repo, and it will create a pipeline which deploys your static site down page whenever it gets edit. All done with a few clicks, brilliant.
To solve this SSL issue we are trying to setup Azure App Service, but are having problems.
There is no Azure app service for static web pages, so we chose PHP as that is the closest.
When you create the Azure web app, it allows you to link your devops git repo (see screen shot), but unlike static web apps, does not create a pipeline or setup any auto deployment. Unfortunately, it doesn't create a yaml file in your repo like Azure Static Web apps does.
In fact, we can't find any way to deploy to the azure web app from git. The only option seems to be via Azure CLI, which certainly isn't an option for our web designers, and we haven't managed to get it working on apple silicon. There must be a CD option.
Any ideas?
When we solve this, the next problem will be setting up a custom domain and converting our certs we got from sectigo into the format required for Azure, and installing them.
