Running Semantic Kernel on Durable Functions

Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
2025-06-04T11:29:22.5766667+00:00

Has anyone tried running Semantic Kernel on Durable Functions? I'm curious about its feasibility and any challenges or tips for integration.

Additionally, can consumption tier Azure Functions be used for this purpose? If so, is it possible to tweak them to run as a long-running orchestrator?

Thanks in advance!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,867 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sai Prabhu Naveen Parimi 2,020 Reputation points Microsoft External Staff Moderator
    2025-06-06T11:00:23.59+00:00

    @Pramod Valavala

    It sounds like you're curious about integrating Semantic Kernel with Azure Durable Functions. That’s a great question! Running Semantic Kernel in a Durable Functions environment can definitely be feasible, especially since Durable Functions allow for stateful workflows which can manage the complexities of long-running tasks.

    Here are a few things to consider for your integration:

    Feasibility: Yes, it's indeed possible to run Semantic Kernel on Durable Functions. You'll want to ensure that your tasks can be well-defined as orchestrator functions. This way, Durable Functions can manage the state and execution flow for your long-running background processes.

    Consumption Tier and Long-Running Orchestrator: Azure Functions on the consumption tier have limitations, primarily that they time out after 5 minutes. However, Durable Functions are designed to handle this use case; they can manage long-running executions by using "orchestration functions." Even in the consumption tier, you can effectively break down long tasks into smaller segments with checkpoints.

    Orchestrator Functions: Create orchestrator functions that will call Semantic Kernel components. You can leverage the Durable Task Framework to control the flow of execution and maintain state between function calls.

    Best Practices: Here are some tips:

    • Use activity functions to wrap calls to the Semantic Kernel.
    • Pay attention to any dependencies that may need to be retried due to transient errors.
      • Ensure that your orchestration logic appropriately handles long-running workflows and adds any necessary timeouts.

  2. Praveen Kumar Gudipudi 1,085 Reputation points Microsoft External Staff Moderator
    2025-06-13T05:27:35.9866667+00:00

    Hello Pramod Valavala,

    This example shows how to build a Kernel and send a prompt to it via an Orchestration of an Agent (which are basically just renamed Durable Functions Activities)

    Please refer .NET 8 Isolated - Durable Functions + Semantic Kernel Integration Project Discussion to run Semantic Kernel on Durable Functions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.