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
Copy file name to clipboardExpand all lines: articles/aks/dapr-workflow.md
+52-38Lines changed: 52 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,26 @@
1
1
---
2
-
title: Manage workflows with the Dapr extension for Azure Kubernetes Service (AKS)
3
-
description: Learn how to run and manage Dapr Workflow on your Azure Kubernetes Service (AKS) clusters via the Dapr extension.
2
+
title: Deploy and run workflows with the Dapr extension for Azure Kubernetes Service (AKS)
3
+
description: Learn how to deploy and run Dapr Workflow on your Azure Kubernetes Service (AKS) clusters via the Dapr extension.
4
4
author: hhunter-ms
5
5
ms.author: hannahhunter
6
6
ms.reviewer: nuversky
7
7
ms.service: azure-kubernetes-service
8
8
ms.topic: article
9
-
ms.date: 03/03/2023
9
+
ms.date: 03/06/2023
10
10
ms.custom: devx-track-azurecli
11
11
---
12
12
13
13
# Manage workflows with the Dapr extension for Azure Kubernetes Service (AKS)
14
14
15
15
With the Dapr Workflow API, you can easily orchestrate messaging, state management, and failure-handling logic across various microservices. Dapr Workflow can help you create long-running, fault-tolerant, and stateful applications.
16
16
17
-
In this guide, you'll use the [provided order processing workflow example][dapr-workflow-sample] to:
17
+
In this guide, you use the [provided order processing workflow example][dapr-workflow-sample] to:
18
18
19
19
> [!div class="checklist"]
20
+
> - Create an Azure Container Registry and an AKS cluster for this sample.
20
21
> - Install the Dapr extension on your AKS cluster.
21
22
> - Deploy the sample application to AKS.
22
-
> - Start and query workflow instances using API calls.
23
+
> - Start and query workflow instances using HTTP API calls.
23
24
24
25
The workflow example is an ASP.NET Core project with:
25
26
- A [`Program.cs` file][dapr-program] that contains the setup of the app, including the registration of the workflow and workflow activities.
@@ -56,8 +57,8 @@ cd dapr-workflows-aks-sample
56
57
Run the following commands to test that the Docker image works for the application.
Once you've deployed Redis, deploy the application to AKS:
159
162
160
163
```sh
161
164
kubectl apply -f deployment.yaml
162
165
```
163
166
164
-
Expose the Dapr sidecar and the sample app
167
+
Expose the Dapr sidecar and the sample app:
165
168
166
169
```sh
167
170
kubectl apply -f service.yaml
168
-
export SAMPLE_APP_URL=$(kubectl get svc/workflows-sample -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
171
+
export APP_URL=$(kubectl get svc/workflows-sample -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
169
172
export DAPR_URL=$(kubectl get svc/workflows-sample-dapr -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
170
173
```
171
174
172
175
Verify that the above commands were exported:
173
176
174
177
```sh
175
-
echo $SAMPLE_APP_URL
178
+
echo $APP_URL
176
179
echo $DAPR_URL
177
180
```
178
181
@@ -181,52 +184,63 @@ echo $DAPR_URL
181
184
Now that the application and Dapr have been deployed to the AKS cluster, you can now start and query workflow instances. Begin by making an API call to the sample app to restock items in the inventory:
182
185
183
186
```sh
184
-
curl -X GET $SAMPLE_APP_URL/stock/restock
187
+
curl -X GET $APP_URL/stock/restock
185
188
```
186
189
187
190
Start the workflow:
188
191
189
192
```sh
190
-
curl -i -X POST $DAPR_URL/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/1234/start \
193
+
curl -X POST $DAPR_URL/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/1234/start \
0 commit comments