question

zarick avatar image
0 Votes"
zarick asked PramodValavala-MSFT commented

The OS for Linux app deployment under App Service Plan

On the App Service Plan, we can choose between Linux and Windows as the OS.

But from below docs:
- https://docs.microsoft.com/en-us/azure/app-service/operating-system-functionality

It only provides details for the Windows OS environment. The Notes section seems to suggest Linux app is run under a Container.
Does it mean that, if I choose Linux as the OS for App Service Plan, the app is simply running in a container where the host OS is still Windows?

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered PramodValavala-MSFT commented

@Zarick-5916 AFAIK about how containers work, that won't be possible. Linux Containers can only run on a Linux Host. Docker for Windows, for example, runs Linux Containers on Windows by using a virtualized Linux VM.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

So I think my question is not very precise, apologies for that.
Simply put, it imply Azure App Service will host the Linux based container runtime under Linux host.

II think part of my question is to get a confirmation to this statement as it is nowhere stated clearly on the official MS Azure Docs.
I

1 Vote 1 ·

@Zarick-5916 Yes. That is correct.

0 Votes 0 ·
JaliyaUdagedara avatar image
0 Votes"
JaliyaUdagedara answered

Adding to @PramodValavala-MSFT answer, when you chose Linux as the operating system, based on the Runtime stack you select, Azure will create a Linux container from an appropriate language-specific built-in image and run your app service on that. If the runtime your application requires is not supported in the built-in images or you want custom dependencies installed, you can deploy it with a custom container using Web App for Containers.

Run following command to view the latest languages and supported versions,

 az webapp list-runtimes --linux





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.