question

rageshtr avatar image
0 Votes"
rageshtr asked ·

Azure Web App for Linux - DotNET Core 2.2 Support

I am unable to select DotNET Core 2.2 stack for Web app for Linux. Has the support for the same end? Is any official documentation available on the supported DotNET Core versions?

Thank you.

azure-webapps
· 2
10 |1000 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.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ·

Not necessarily. It's still there. To see the available runtimes for Linux you can run az webapp list-runtimes --linux CLI command. To create a 2.2 web app, you can run az webapp create -n mynetcoreapp -p mylinuxplan -r "DOTNETCORE|2.2" in a bash window. If you're using powershell, preceed webapp with '--%' ( az --% webapp create -n mynetcoreapp -p- mylinuxplan -r "DOTNETCORE|2.2" ).

However, you can select 3.1 as the runtime in the portal and still deploy your app as 2.2 runtime and it will still function.

· 4 ·
10 |1000 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.

@ryanchill Thank you for the info. I will try creating the app using AZ CLI. Currently, I tried creating the app from the portal and while trying to set the stack settings in the app configuration I can not select Dotnet core 2.2. Earlier (till couple of weeks back) I was able to select the same.

0 Votes 0 ·

@rageshtr, right. Reason being is that .NET Core 3.1 is officially GA across Azure so why not use the latest and greatest ;). Nonetheless, the CLI gives you a way to force .NET Core 2.2. However, it really shouldn't be necessary if your using .NET Standard 2.0 for any references. If that holds true, your .NET 3.1 app service will run your .NET Core 2.2 app without issue. To verify any APIs you question, you can use https://apisof.net/ to check.


1 Vote 1 ·

Thank you @ryanchill . With CLI the app is working as expected.

1 Vote 1 ·