webapp: Have --html default to OS of the app service plan
See original GitHub issueIs your feature request related to a problem? Please describe.
az webapp up --html
defaults to a Windows OS app service plan. If a customer wants to create a static web app on a Linux OS, this command wouldn’t work.
Describe the solution you’d like
When using --html, the CLI should use the OS of the app service plan that’s being passed in. If --plan is not passed, then simply default to windows.
Describe alternatives you’ve considered
As a workaround, I added a package.json to full the CLI into creating an app which will use nodejs.
Additional context
See https://docs.microsoft.com/en-us/answers/questions/37285/index.html for more details.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
QuickStart: Create a static HTML web app - Azure App Service
Create a default app service plan. Create an app with the specified name. Zip deploy files from the current working directory to the...
Read more >How to set "default page" for Angular in Azure Web App on ...
I suspect that i need to setup a default page, but i cannot find this anywhere in the Application Settings in the Azure...
Read more >Azure App Service and Web Apps - Cloud References
In this chapter, we take a look at the Azure App Service, consisting of Web Apps, Logic Apps, Mobile Apps, API Apps, and...
Read more >Deploying Your Web App using Azure App Service
Pre-requisites for this tutorial are: A Microsoft Azure Account; A GitHub Account; A Sample HTML Website. Step 1: Open your Microsoft Azure ...
Read more >Web App (Windows) Restart Operations - Azure App Service
Restart of Specific App Service Plan worker node ... describes the effects only in App Services running on Windows operating system.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tboerstad yes static hosting on Linux is something that is in the works.
If you want to do this today, you can target one of the PHP images on linux. We include a web server that can be used for static content in those images.
@btardif Are there plans for static hosting on Linux App Service?
I face the same challenge as the original poster linked to. I have an existing backend which is running on Linux App Service, and I would like the static frontend to be in the same App Service Plan. This way the backend and frontend can share resources and hopefully improve latency. I suspect there are more of us with this use case.