Azure Durable Functions in different languages

Dheeraj 351 Reputation points
2021-10-10T13:01:49.107+00:00

I want one of my durable azure function in C# and other to be written in PowerShell. Is it possible?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,329 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,436 Reputation points
    2021-10-11T05:32:03.92+00:00

    @Dheeraj ,

    It appears that you would like to create a C# function and a powershell function inside the same function app which is not possible. While creating the function app, you can choose either one of the languages (C# or Powershell) but not both. This is by design, the C# functions gets executed by dotnet worker and powershell functions gets executed in powershell workers.

    If you are using webhooks/http triggers, you can create separate Function Apps for dotnet and powershell and make http calls between them.
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=csharp

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful