Skip to content

Commit 244523f

Browse files
committed
initial add for deploy section
Signed-off-by: Hannah Hunter <[email protected]>
1 parent bf5f3f6 commit 244523f

File tree

1 file changed

+69
-5
lines changed

1 file changed

+69
-5
lines changed

articles/azure-functions/durable-task-scheduler/quickstart-portable-durable-task-sdks.md

Lines changed: 69 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Since the example code automatically uses the default emulator settings, you don
150150
151151
::: zone pivot="csharp,python,java"
152152
153-
## Run the projects
153+
## Run the quickstart
154154
155155
::: zone-end
156156
@@ -174,7 +174,7 @@ Since the example code automatically uses the default emulator settings, you don
174174
175175
### Understanding the output
176176
177-
When you run this sample, you receive output from both the worker and client processes.
177+
When you run this sample, you receive output from both the worker and client processes. [Unpack what happened in the code when you ran the project.](#understanding-the-code-structure)
178178
179179
#### Worker output
180180
@@ -274,7 +274,7 @@ Total items processed: 5
274274
275275
### Understanding the output
276276
277-
When you run this sample, you receive output from both the worker and client processes.
277+
When you run this sample, you receive output from both the worker and client processes. [Unpack what happened in the code when you ran the project.](#understanding-the-code-structure)
278278
279279
#### Worker output
280280
@@ -346,6 +346,8 @@ When you run this sample, you receive output that shows:
346346
- Random delays for each work item (between 0.5 and 2 seconds) to simulate varying processing times.
347347
- A final message showing the aggregation of results.
348348

349+
[Unpack what happened in the code when you ran the project.](#understanding-the-code-structure)
350+
349351
#### Example output
350352

351353
```
@@ -360,7 +362,6 @@ Output: 60
360362

361363
::: zone-end
362364

363-
364365
::: zone pivot="csharp,python,java"
365366

366367
## View orchestration status and history
@@ -682,5 +683,68 @@ logger.info("Output: {}", completedInstance.readOutputAs(int.class));
682683

683684
::: zone-end
684685

686+
::: zone pivot="csharp,python,java"
687+
688+
## Deploy to Azure
689+
690+
Now that you've run the sample locally, you can choose to deploy to Azure for a production scenario. You can deploy for any compute, including Azure container Apps, Azure Kubernetes Service, Azure App Service, and Virtual Machines.
691+
692+
[Make sure you're aware of related costs with creating scheduler and task hub resources.](./durable-task-scheduler-dedicated-sku.md)
693+
694+
1. In a new terminal, install or upgrade the Durable Task Scheduler CLI extension.
695+
696+
```azurecli
697+
az extension add --name durabletask
698+
```
699+
700+
```azurecli
701+
az extension add --upgrade --name durabletask
702+
```
703+
704+
1. Create a resource group
705+
706+
```azurecli
707+
az group create --name <rg-name> --location <location>
708+
```
709+
710+
1. Create a scheduler.
711+
712+
```azurecli
713+
az durabletask scheduler create --resource-group <rg-name> --name <scheduler-name> --location <location> --ip-allowlist "[0.0.0.0/0]" --sku-capacity 1 --sku-name "Dedicated" --tags "{'myattribute':'myvalue'}"
714+
```
715+
716+
1. Create your task hub.
717+
718+
```azurecli
719+
az durabletask taskhub create --resource-group <rg-name> --scheduler-name <scheduler-name> --name <taskhub-name>
720+
```
721+
722+
1. Navigate to your scheduler resource in the Azure portal.
723+
724+
1. In the overview page, under **Essentials**, copy the scheduler's endpoint.
725+
726+
1. In the terminal, set the environment variables for the task hub and the endpoint.
727+
728+
# [Bash](#tab/bash)
729+
730+
```bash
731+
export TASKHUB=<taskhubname>
732+
export ENDPOINT=<taskhubEndpoint>
733+
```
734+
735+
# [PowerShell](#tab/powershell)
736+
737+
```powershell
738+
$env:TASKHUB = "<taskhubname>"
739+
$env:ENDPOINT = "<taskhubEndpoint>"
740+
```
741+
742+
---
743+
744+
1. [Run the sample following the steps from earlier.](#run-the-quickstart)
745+
746+
::: zone-end
747+
748+
749+
## Next steps
685750
686-
## Next steps

0 commit comments

Comments
 (0)