Skip to content
kendaleiv.com
Go back

Thoughts On Debugging Durable Functions Extension Orchestrations For Azure Functions Backed By Azure Table Storage

Durable Functions is an extension for Azure Functions to help write stateful services in a stateless environment. Here’s a few thoughts I’ve compiled for debugging Durable Functions orchestrations.

Note: This post assumes Azure Table Storage is the backend data store.

Finding The InstanceId

A good first step is finding the InstanceId if you don’t already have it. This is the PartitionKey for table storage which can filter the tables for this specific instance.

In table storage you’ll find two tables, one ending in History and one ending in Instances. The Instances can be helpful for determining the InstanceId, as the InstanceId is the PartitionKey in table storage and it contains the input parameters for each instance.

Note: If multiple Azure Functions applications are running the same code but using their own backend state storage for Durable Functions you’ll need to find which web app is handling the Durable Functions instance. You can guess and check Table Storage or query Application Insights for the appName using an Instance summary query.

Tooling

Here’s a few options:

Thoughts For Future Debugging

After you’ve worked through an issue you have an opportunity to potentially make a similar investigation easier next time.

Hope this helps if you’re investigating an issue!


Share this post:

Previous Post
Retrieving All Managed Identity ObjectIds In Resource Group For Azure App Services And Azure Functions Using Azure CLI
Next Post
Running Code On Local Computer / Localhost Only Using Azure Functions With C#