question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`az functionapp create` for .NET Core 3.1 on Linux fails

See original GitHub issue

az feedback auto-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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fabiocavcommented, Apr 28, 2020

@anthonychu @gzuber flagging this for review.

1reaction
anthonychucommented, Mar 19, 2020

This should be fixed with #12577

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying .netcore 3.1 function apps to linux - Microsoft Q&A
i now want to migrate them to a linux hosted resource group. i have deleted my existing function apps, recreated them and attempted...
Read more >
Azure Functions Linux upgrading from .NET Core 3.1 to .NET ...
Try using it in this way "DOTNET-6.0" az functionapp config set --name $functionAppName --resource-group $resourceGroupName ...
Read more >
azurerm_function_app | Resources | hashicorp/azurerm
Manages a Function App. ... To connect an Azure Function App and a subnet within the same region ... NET Core 2.1 and...
Read more >
Develop Azure Functions using .NET Core 3.1
x bits to pull in on your machine, so if you get an error like "no runtime available that matches the version," try...
Read more >
Use Azure Functions with .NET 5 - Dave Brock
Because it runs in a separate process, you don't have to worry about runtime and host dependencies. Looking long-term: it provides the ability ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found