At Build Azure Static Web Apps (Preview) were released, which streamlined A TON of what is in this article.
All of the configuring is handled for you, supports custom domains, includes the support of Azure Functions (for more complex web scenarios), the template even includes a GitHub Action for deployments -- all for free while it's in preview.
See more here: https://docs.microsoft.com/en-us/azure/static-web-apps/getting-started
My converted test project: https://github.com/squalrus/mf.com