Azure functions v4 .Net 6 on Linux issue

718 Views Asked by At

I have created a new Function App with an App Service Plan. It is based on Linux with .NET6 see here.

After the creation, the Function runtime version is 4 and on the General settings page the Stack and the .NET version is correct (.NET 6). Function Runtime version, NET version

When connect (Advanced Tools/Bash) to the app to check the version of the .Net using the "dotnet --version" command, I'm getting back .NET version 3.141.5. Azure app service plan bash.

Why am I getting the .Net3.1 instead of .Net6 as selected in the configuration?

Also I have created a similar setup based on Windows OS+.Net6 and with this configuration I get .Net6.

1

There are 1 best solutions below

2
PunitSharma On

Function V4 required .net 6 version.

enter image description here

Click on Download a template for automation. enter image description here

enter image description here

enter image description here

Its run runtime version is 4.8.0 and click on JSON view link. enter image description here

Here is show .Net version 6. enter image description here

More information read this documents by demiliani