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
docker run -itP mcr.microsoft.com/dts/dts-emulator:v0.0.5
63
+
```
64
+
65
+
The command above exposes a single task hub named `default`. 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:
66
+
67
+
```bash
68
+
docker run -itP -e DTS_TASK_HUB_NAMES=taskhub1,taskhub2,taskhub3 mcr.microsoft.com/dts/dts-emulator:v0.0.5
69
+
```
70
+
52
71
## Create a scheduler and task hub
53
72
54
73
::: zone pivot="az-cli"
@@ -197,11 +216,11 @@ You can see the list of scheduler resources created in all subscriptions you hav
197
216
198
217
::: zone pivot="az-cli"
199
218
200
-
Retrieve a list of task hubs in a specific scheduler by running:
219
+
Retrieve a list of task hubs in a specific scheduler by running:
201
220
202
-
```azurecli
203
-
az durabletask taskhub list --resource-group <RESOURCE_GROUP_NAME> --scheduler-name <SCHEDULER_NAME>
204
-
```
221
+
```azurecli
222
+
az durabletask taskhub list --resource-group <RESOURCE_GROUP_NAME> --scheduler-name <SCHEDULER_NAME>
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/durable-task-scheduler/quickstart-durable-task-scheduler.md
+7-24Lines changed: 7 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ In this quickstart, you configure a durable functions app to use the [durable ta
28
28
## Prerequisites
29
29
30
30
This quickstart assumes you alredy have an Azure Functions project on your local computer with:
31
-
- Durable functions added to your project using:
31
+
- Durable functions added to your project include:
32
32
- An [orchestrator function](../durable-functions-bindings.md#orchestration-trigger).
33
33
- A [client function](../durable-functions-bindings.md#orchestration-client) that triggers the durable functions app.
34
34
- The project configured for local debugging.
@@ -64,7 +64,7 @@ You'll also need:
64
64
65
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:
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:
87
+
These commands should automatically generate a *extensions.csproj* file. 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. The file should have content similar to the following:
88
88
89
89
```xml
90
90
<ProjectSdk="Microsoft.NET.Sdk">
@@ -155,12 +155,6 @@ Get the durable task scheduler emulator port number in [the next step](#set-up-d
155
155
```bash
156
156
docker run -itP mcr.microsoft.com/dts/dts-emulator:v0.0.5
157
157
```
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
158
165
159
The following indicates the emulator started successfully.
166
160
:::image type="content" source="media/quickstart-durable-task-scheduler/emulator-started.png" alt-text="Screenshot showing emulator started successfully on terminal.":::
@@ -230,21 +224,10 @@ Get the durable task scheduler emulator port number in [the next step](#set-up-d
230
224
231
225
### Create required resources
232
226
233
-
Create a durable task scheduler instance and Azure Functions app on Azure following the *Function app integrated creation flow*.
227
+
Create a durable task scheduler instance and Azure Functions app on Azure following the *Function app integrated creation flow*. This experience will automatically set up identity-based access and configure the required environment variables for the app to access the scheduler.
-`DURABLE_TASK_SCHEDULER_CONNECTION_STRING`: the format of the string is `"Endpoint={DTS endpoint};Authentication=ManagedIdentity;ClientID={client id}"`, where *endpoint* is the scheduler 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
@@ -267,7 +250,7 @@ az functionapp function list --resource-group <RESOURCE_GROUP_NAME> --name <FUNC
267
250
268
251
### Check orchestration status
269
252
270
-
Check the status of the orchestration instance and activity details on the durable task scheduler dashboard. Follow the instructions below to assign the required role to your developer identity (email) to get access to the dashboard.
253
+
Check the status of the orchestration instance and activity details on the durable task scheduler dashboard. Accessing the dashboard requires you to login. Follow the instructions below to assign the required role to your identity.
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/durable-task-scheduler/troubleshoot-durable-task-scheduler.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,4 +78,4 @@ For Mx Mac (ARM64) users, you may run into gRPC runtime issues with durable func
78
78
79
79
## Error deploying app to Azure
80
80
81
-
If your deployment fails with an error such as `Encountered an error (ServiceUnavailable) from host runtime` from Visual Studio Code, first check your app to ensure the required [environment variables and their values](./develop-with-durable-task-scheduler.md#add-environment-variables-to-app) are set correctly. Then redeploy your app. If you see an error loading functions, click the "Refresh" button.
81
+
If your deployment fails with an error such as `Encountered an error (ServiceUnavailable) from host runtime` from Visual Studio Code, first check your app to ensure the required [environment variables](./develop-with-durable-task-scheduler.md#add-environment-variables-to-app) are set correctly. Then redeploy your app. If you see an error loading functions, click the "Refresh" button.
0 commit comments