az functionapp create returns error when trying to create a dotnet-isolated functionapp
See original GitHub issueRelated command
az functionapp create
Describe the bug
When using the command below to create an isolated .NET 5 function app environment the az functionapp create
returns immediately with the error message (line breaks added to make it easier to read the message)
Runtime dotnet-isolated not supported for os linux. Supported runtimes for os linux are:
['dotnet', 'dotnet', 'node', 'node', 'node', 'python', 'python', 'python', 'java', 'java', 'powershell', 'powershell', 'custom'].
Run 'az functionapp list-runtimes' for more details on supported runtimes.
Please note the duplicate supported runtimes displayed as well.
To Reproduce
- Have the Azure CLI version 2.36.0
- Create required resources for the command to run (see the documentation from Azure Functions dotnet worker repo)
- Execute the following command and replace related
<>
values
az functionapp create `
--resource-group <Resource group> `
--name <Function name> `
--storage-account "<Storage account>" `
--consumption-plan-location westeurope `
--functions-version 3 `
--os-type Linux `
--runtime dotnet-isolated `
--runtime-version 5.0 `
--app-insights-key <App-insights key> `
--assign-identity
Expected behavior
The dotnet-isolated
should be allowed as a runtime since it is supported by Azure Functions.
Environment summary
- Azure CLI version 2.36.0
-
az version { "azure-cli": "2.36.0", "azure-cli-core": "2.36.0", "azure-cli-telemetry": "1.0.6", "extensions": { "aks-preview": "0.5.48", "application-insights": "0.1.14", "log-analytics-solution": "0.1.1", "peering": "0.2.1" } }
- installed using MSI
-
- Powershell 7.2.3
Additional context
- This identical command works in earlier versions of Azure CLI (2.31.0), but have for some reason stopped working and gives us the specified error.
- The error is the same if you try to execute it with
os-type
Windows
- The Azure Function dotnet documentation states that this is correct command.
- For some reason it isn’t possible to deploy isolated .NET 6 using 2.31.0 but that’s another story (and generally a problem with .NET 6 and out of scope of this issue).
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Guide for running C# Azure Functions in an isolated worker ...
A HostBuilder is used to build and return a fully initialized IHost instance, which you run asynchronously to start your function app. C#...
Read more >how do i create an azure function app using dotnet-isolation?
I am trying to create an azure function app using .net5 isolation, however the azure portal doesn't have an option for .net 5...
Read more >Creating Azure Functions with .NET 6 in Isolated Process
The global configuration file host.json includes settings that affect all functions deployed under the same function app. Host.json gets ...
Read more >Build an v4 Azure Function that runs as an isolated process ...
Go to the Azure Portal and create a new Function App (consumption plan) using following settings: Publish: Code; Runtime stack: .NET; Version: 6;...
Read more >Developing .NET Isolated Process Azure Functions
Using .NET Isolated Process Functions, we can decouple the .NET version we want to use from the Azure Functions Runtime.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dozer75 I have reached out to the Product owners with all the details. I will update this thread once I hear back from them.
@dozer75 We had reached out to the Product Owners in the background and they are aware of this issue. Hence just to unblock you the workaround was shared. We hear you and understand your concerns. We sincerely apologize for the inconvenience caused.
Reference: https://github.com/Azure/azure-functions-dotnet-worker/pull/894
Also there’s an issue tracking it https://github.com/Azure/azure-functions-dotnet-worker/issues/857 which has been created. There is no ETA on when it will be fixed, but it seems the Stacks API fix is blocked on some other host issue.