Reputation: 10362
I'm trying to create an Azure Durable Function in Visual Studio Code and fail because the function template is missing.
When creating an Azure Function project in Visual Studio Code one has several choices to make and extensions to install:
I tried to use the latest and greatest for the runtime:
But there is no template available for Durable Functions although the docs say it should be there:
Now when choosing older versions instead (.NET Core 2, Azure Functions v2):
The template "Durable Functions Orchestration" appears:
I tried to find information about this in the official docs for Azure Functions and Durable Functions but did not find anything useful. There is a history of versions for different tools all with different configuration options and a history of bugs causing the tooling to fail.
I tried different combinations. Choosing v3 for the Function Runtime like in the linked sample does not work with .NET 5 as the template still is missing. With .NET Core 3 the template appears.
Now I'm wondering: should the "Durable Functions Orchestration" template option be available also with the newer runtime stack (.NET 6, Functions v4)? Or is that correct that I have to use the old versions (e.g. .NET Core 2, Functions v2 or .NET Core 3, Functions v3)? Or is this even a tooling issue and I should rather build my Durable Function code by hand instead of using the templates in VS Code?
Any hints are appreciated.
Upvotes: 3
Views: 2549
Reputation: 15052
You have to choose “.NET 6” instead of “.NET 6 Isolated”.
EDIT: Support for the isolated worker is now generally available. https://azure.microsoft.com/en-us/updates/generally-available-durable-functions-support-for-net-isolated-model/. This includes support for .NET 6 and greater. You should be able to see those templates now.
Upvotes: 2
Reputation: 21
As of now, Support for Durable Functions for Isolated .NET is not scheduled until later on in 2023 and hopefully with .net 7 .
AlexEngblom @ Microsoft commented 3 weeks ago • It looks like we won't have durable entity support in the first release. This is a real shame, because for us it means we cannot move forward yet. Also NET 7 upgrade is failing with older in-proc functions, so this is becoming a real bottleneck. https://github.com/Azure/azure-functions-dotnet-worker/issues/767
Upvotes: 1