Skip to content

Add DTS to Durable Functions storage provider list #4394

@lilyjma

Description

@lilyjma

Add Durable Task Scheduler (preview) to the following list that shows up during Function project creation (when Durable Orchestration is picked)

Image

This would require associated updates to the local.settings.json and host.json file.

  1. local.settings.json needs to have these two environment variables
 "DURABLE_TASK_SCHEDULER_CONNECTION_STRING": "Endpoint=http://localhost:<port number>;Authentication=None",
 "TASKHUB_NAME": "default"
  1. host.json needs to have storage provider type azureManaged and task hub name:
 "durableTask": {
      "hubName": "%TASKHUB_NAME%",
      "storageProvider": {
        "type": "azureManaged",
        "connectionStringName": "DURABLE_TASK_SCHEDULER_CONNECTION_STRING"
      }
    }
  1. For .NET users, the following package needs to be added to .csproj when Durable Task Scheduler (preview) is picked:

Microsoft.Azure.Functions.Worker.Extensions.DurableTask.AzureManaged

For non .NET users, the following version of preview bundles is needed (specified in host.json)

 "extensionBundle": {
   "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
   "version": "[4.29.0, 5.0.0)"
  }

cc @nturinski

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions