Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux flavor and version on my Azure WebApp for linux

I am trying to host my .Net core MVC 2.1 linux application in azure WebApp. How do i know the Linux flavour, O/S, version running on WebApp? I am selecting 'West US' as region.

I think this is needed while i build my code on my development machine: How to compile .NET Core app for Linux on a windows machine My dev machine is ubuntu and Production server is CentOS

like image 763
knowdotnet Avatar asked Oct 27 '25 04:10

knowdotnet


2 Answers

You can get system info from the Kudu environment. Kudu is the central nervous system of a Microsoft Azure Web Site; it handles the Git integration to a Web Site as well as provides an API endpoint for programmatic access to app settings, deployment information, files, active processes, runtime versions, source control information, web hooks and web jobs.

To get to Kudo, navigate to https://<webappname>.scm.azurewebsites.net, from there you can click on Environment to get something like this:

enter image description here

System info

  • System up time: 4.10:36:14.7190000
  • OS version: Unix 4.4.0.128
  • 64 bit system: True
  • 64 bit process: True
like image 91
Ken W MSFT Avatar answered Oct 28 '25 17:10

Ken W MSFT


When you use Web App in Azure, you need to create the Service Plan first, it will need to decide the system type: Linux or Windows. And then when you create the web app, there is also a chance to choose a runtime for your web app in your Linux service plan(in your case, Linux is you need).

Azure provides some Built-in images as the runtime. See Build-in Runtime. If the runtime your application requires is not supported in the built-in images, you also can build your own Docker image as you need for your application. See Use a custom Docker image for Web App.

So you do not need to know what the OS is, you can just create the choose the OS you need. If you really really want to know the OS version, you can create an SSh session to your web app and run shell commands to check what the OS version is. See SSH support for Azure App Service on Linux.

like image 40
Charles Xu Avatar answered Oct 28 '25 19:10

Charles Xu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!