Skip to content Skip to sidebar Skip to footer

How Will I Host A Static HTML Page On Azure Linux Web App?

I have a HTML page which I want to host on Azure web app. I need to host this HTML page in a resource group which is under OS Linux and so I ran the below azure cli command but, it

Solution 1:

az webapp up : Experimental command to create and deploy a web app. Current supports includes Node, Python on Linux & .NET Core, ASP.NET, staticHtml on Windows.

enter image description here

Hosting static HTML app on Linux is not supported at this time.

Probably you can create it in another RG and configure CORS on the web app.


Solution 2:

As mentioned in the docs for az webapp up, current support includes Node, Python, .NET Core and ASP.NET. Node, Python apps are created as Linux apps. .Net Core, ASP.NET, and static HTML apps are created as Windows apps.

Also, if you are opting to host your static website with Azure Storage, please know that CORS is not supported with static website.

Here is a blog post consolidating available options.


Post a Comment for "How Will I Host A Static HTML Page On Azure Linux Web App?"