question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webapp: Have --html default to OS of the app service plan

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
btardifcommented, Aug 5, 2020

@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.

0reactions
tboerstadcommented, Aug 5, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found