The OS for Linux app deployment under App Service Plan

Zarick 26 Reputation points
2021-07-25T13:39:16.617+00:00

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

But from below docs:

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-07-26T03:27:59.423+00:00

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


1 additional answer

Sort by: Most helpful
  1. Jaliya Udagedara 2,836 Reputation points MVP Volunteer Moderator
    2021-07-26T04:15:54.837+00:00

    Adding to @Pramod Valavala 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  
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.