`az functionapp create` for .NET Core 3.1 on Linux fails
See original GitHub issue
az feedbackauto-generates most of the information requested below, as of CLI version
az version:
“azure-cli”: “2.2.0”,
“azure-cli-command-modules-nspkg”: “2.0.3”,
“azure-cli-core”: “2.2.0”,
“azure-cli-nspkg”: “3.0.4”,
“azure-cli-telemetry”: “1.0.4”,
“extensions”: {
“interactive”: “0.4.3”
}
Describe the bug
Creating a function app for an existing app plan & storage account, using Linux consumption plan for a .NET Core 3.1 app fails with the error: The parameter LinuxFxVersion has an invalid value.
Confirmed the region is valid for consumption plan, and using a dedicated resource group with no other resources. I’ve tried various combinations of versions but can’t find a winning combination. Creating the function app with the same setup in the portal works correctly.
To Reproduce
- create new RG
- create new storage account
- create function app plan
Run:
az functionapp create \
--resource-group $FUNCTION_RESOURCE_GROUP \
--consumption-plan-location $AZURE_REGION \
--name $FUNCTION_APP_NAME \
--os-type Linux \
--functions-version 3 \
--runtime dotnet \
--runtime-version 3 \
--storage-account $STORAGE_ACCOUNT_NAME
Expected behavior New function app created.
Environment summary Bash on Cloud Shell.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (6 by maintainers)

Top Related StackOverflow Question
@anthonychu @gzuber flagging this for review.
This should be fixed with #12577