You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- An [HTTP test tool](../../functions-develop-local.md#http-test-tools) that keeps your data secure.
57
57
58
-
::: zone pivot="csharp"
58
+
## Add the Durable Task Scheduler package
59
59
60
-
## Add the Durable Task Scheduler extension
60
+
::: zone pivot="csharp"
61
61
62
62
> [!NOTE]
63
63
> The DTS extension requires **Microsoft.Azure.Functions.Worker.Extensions.DurableTask** version `1.2.2` or higher.
64
64
65
-
Install the latest version of the [Microsoft.Azure.Functions.Worker.Extensions.DurableTask.AzureManaged](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.DurableTask.AzureManaged) extension from NuGet. There are several ways of doing this:
66
-
67
-
1. Add a reference to the extension in your _.csproj_ file and then build the project.
68
-
69
-
1. Use the [dotnet add package](/dotnet/core/tools/dotnet-add-package) command to add extension packages.
70
-
71
-
1. Install the extension by using the following [Azure Functions Core Tools CLI](../../functions-run-local.md#install-the-azure-functions-core-tools) command:
65
+
Install the latest version of the [Microsoft.Azure.Functions.Worker.Extensions.DurableTask.AzureManaged](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.DurableTask.AzureManaged) package by using the [dotnet add package](/dotnet/core/tools/dotnet-add-package) command:
Until the durable task scheduler package is added to the extension bundles, you need to manually install the latest version of these packages using [Azure Functions Core Tools](../../functions-run-local.md#install-the-azure-functions-core-tools):
These commands should automatically generate a *extensions.csproj* file that looks like the following to your app. If the package references are not added to the file, check to ensure that `net8.0` is the target framework and run the commands again:
docker run -itP mcr.microsoft.com/dts/dts-emulator:v0.0.4
156
+
docker run -itP mcr.microsoft.com/dts/dts-emulator:v0.0.5
147
157
```
148
158
159
+
The command above registers the default task hub. If you need more than one task hub, you can set the environment variable `DTS_TASK_HUB_NAMES` on the container to a comma-delimited list of task hub names like below:
160
+
161
+
```bash
162
+
docker run -itP -e DTS_TASK_HUB_NAMES=taskhub1,taskhub2,taskhub3 mcr.microsoft.com/dts/dts-emulator:v0.0.5
163
+
```
164
+
149
165
The following indicates the emulator started successfully.
150
166
:::image type="content" source="media/quickstart-durable-task-scheduler/emulator-started.png" alt-text="Screenshot showing emulator started successfully on terminal.":::
151
167
152
-
1. Make note of the three ports exposed on Docker desktop: `8080`, `8081`, and `8082`.
168
+
1. Make note of the ports exposed on Docker desktop. These static ports are exposed by the container and mapped dynamically by default. DTS exposes multiple ports for different purposes:
153
169
154
-
These static ports are exposed by the container and mapped dynamically by default. DTS exposes multiple ports for different purposes:
155
170
-`8080`: gRPC endpoint that allows an app to connect to DTS
156
-
-`8081`: Endpiont for metrics gathering
157
171
-`8082`: Endpoint for DTS dashboard
158
172
159
173
:::image type="content" source="media/quickstart-durable-task-scheduler/docker-ports.png" alt-text="Screenshot of ports on Docker.":::
@@ -220,13 +234,28 @@ Create a DTS instance and Azure Functions app on Azure following the *Function a
-`DURABLE_TASK_SCHEDULER_CONNECTION_STRING`: the format of the string is `"Endpoint={DTS endpoint};Authentication=ManagedIdentity;ClientID={client id}"`, where *endpoint* is the DTS endpoint and *client id* is the managed identity client ID.
242
+
243
+
You can use this command:
244
+
```azurecli
245
+
az functionapp config appsettings set --resource-group RESOURCE_GROUP_NAME --name FUNCTION_APP_NAME --settings KEY_NAME=KEY_VALUE
If your app is running on the Functions Premium plan, follow instructions to [turn on Runtime Scale Monitoring](./develop-with-durable-task-scheduler.md#auto-scaling-in-functions-premium-plan) after deployment. This ensures your app autoscales based on load.
254
+
If your app is running on the Functions Premium plan, turn on the *Runtime Scale Monitoring* setting after deployment to ensure your app autoscales based on load:
@@ -238,10 +267,12 @@ az functionapp function list --resource-group <RESOURCE_GROUP_NAME> --name <FUNC
238
267
239
268
### Check orchestration status
240
269
241
-
Check the status of the orchestration instance and activity details on the DTS dashboard.
270
+
Check the status of the orchestration instance and activity details on the DTS dashboard. Follow the instructions below to assign the required role to your developer identity (email) to get access to the dashboard.
Finally, navigate to `https://dashboard.durabletask.io/` and click on **Add Endpoint**. Fill out the required fields to connect the task hub.
275
+
245
276
## Clean up resources
246
277
247
278
If you no longer need the resources that you created to complete the quickstart, to avoid related costs in your Azure subscription, [delete the resource group](/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-portal#delete-resource-group) and all related resources.
0 commit comments