The parameter LinuxFxVersion has an invalid value

• Azure, Functions, Bicep, ARM Templates, Troubleshooting, .NET • 2 min read

The error “The parameter LinuxFxVersion has an invalid value” can be one of those challenging Bicep/ARM errors, that can consume some time until you figure it out. I hope I can alleviate some pain with this post.

Before anything else

Open the command line and run this:

1
az functionapp list-runtimes --os linux --query "[].{stack:join(' ', [runtime, version]), LinuxFxVersion:linux_fx_version, SupportedFunctionsVersions:to_string(supported_functions_versions[])}" --output table

You are going to get the following table output:

Stack            LinuxFxVersion        SupportedFunctionsVersions
dotnet-isolated 8DOTNET-ISOLATED8.0    
dotnet-isolated 7DOTNET-ISOLATED7.0    
dotnet-isolated 6DOTNET-ISOLATED6.0    
dotnet 8          DOTNET8.0              
dotnet 6          DOTNET6.0              
node 20          Node20                
node 18          Node18                
python 3.11      Python3.11            
python 3.10      Python3.10            
python 3.9        Python3.9              
python 3.8        Python3.8              
python 3.7        Python3.7              
java 21.0        Java21                
java 17.0        Java17                
java 11.0        Java11                
java 8.0          Java8                  
powershell 7.4    PowerShell7.4          
powershell 7.2    PowerShell7.2          
custom                                   [“4”]                      

Make sure that the value you reference on your Bicep/ARM file is available on LinuxFxVersion.

Still facing the issue?

So your Bicep/ARM is probably not compliant. If you want to eliminate any other dramas, use one of these quickstart templates:

https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.web

If you are trying to deploy an Azure Functions on Linux Consumption, here is a great example:

https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.web/function-app-linux-consumption

Please feel free to add comments on your specific issues or findings so that I can cover more ground with other troubleshooting scenarios. This is going to be a living document.

Comments & Discussion

Join the conversation! Share your thoughts and connect with other readers.