Skip to content

Commit 006a4e7

Browse files
committed
initial changes after mcr hosting
Signed-off-by: Hannah Hunter <[email protected]>
1 parent 92bff39 commit 006a4e7

File tree

1 file changed

+7
-61
lines changed

1 file changed

+7
-61
lines changed

articles/aks/dapr-workflow.md

Lines changed: 7 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.custom: devx-track-azurecli
1212

1313
# Manage workflows with the Dapr extension for Azure Kubernetes Service (AKS)
1414

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.
15+
With Dapr Workflow, 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.
1616

1717
In this guide, you use the [provided order processing workflow example][dapr-workflow-sample] to:
1818

@@ -39,12 +39,12 @@ The workflow example is an ASP.NET Core project with:
3939

4040
## Set up the environment
4141

42-
### Download the sample project
42+
### Clone the sample project
4343

44-
Fork and clone the example workflow application. For more information on forking a repo, see GitHub's guide, [Fork a repo][gh-fork].
44+
Clone the example workflow application.
4545

4646
```sh
47-
git clone https://github.com/<your-repo>/dapr-workflows-aks-sample.git
47+
git clone https://github.com/Azure-Samples/dapr-workflows-aks-sample.git
4848
```
4949

5050
Navigate to the sample's root directory.
@@ -53,47 +53,12 @@ Navigate to the sample's root directory.
5353
cd dapr-workflows-aks-sample
5454
```
5555

56-
### Prepare the Docker image
57-
58-
Run the following commands to test that the Docker image works for the application.
59-
60-
```sh
61-
docker build -t ghcr.io/<your-repo>/workflows-sample:0.1.0 -f Deploy/Dockerfile .
62-
docker push ghcr.io/<your-repo>/workflows-sample:0.1.0
63-
```
64-
65-
### Create an Azure Container Registry
66-
67-
Create an Azure Container Registry (ACR) and log in to retrieve the ACR Login Server.
68-
69-
```sh
70-
az group create --name myResourceGroup --location eastus
71-
az acr create --resource-group myResourceGroup --name acrName --sku Basic
72-
az acr login --name acrName
73-
az acr list --resource-group myResourceGroup --query "[].{acrLoginServer:loginServer}" --output table
74-
```
75-
76-
Expected output:
77-
78-
```sh
79-
acrName.azurecr.io
80-
```
81-
82-
Tag the [Docker image](#prepare-the-docker-image) you prepared earlier and push to your new ACR using the result from the ACR query:
83-
84-
```sh
85-
docker tag ghcr.io/<your-repo>/workflows-sample:0.1.0 acrName.azurecr.io/workflows-sample:0.1.0
86-
docker push acrName.azurecr.io/workflows-sample:0.1.0
87-
```
88-
89-
For more information, see the [Deploy and use ACR][acr] tutorial.
90-
9156
### Create a Kubernetes cluster
9257

93-
Create an AKS cluster and attach to your ACR:
58+
Create an AKS cluster and attach to [the ACR provided with the sample][deployment-yaml]:
9459

9560
```sh
96-
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 2 --generate-ssh-keys --attach-acr acrName
61+
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 2 --generate-ssh-keys --attach-acr samples
9762
```
9863

9964
Make sure `kubectl` is installed and pointed to your AKS cluster.
@@ -102,25 +67,6 @@ For more information, see the [Deploy an AKS cluster][cluster] tutorial.
10267

10368
## Deploy the application to AKS
10469

105-
### Update the containers for deployment
106-
107-
Navigate to the [`deployment.yaml` file][deployment-yaml] in your fork of the sample project and open in your preferred code editor.
108-
109-
```sh
110-
cd Deploy
111-
code .
112-
```
113-
114-
In the `deployment.yaml` file, update the `containers` spec value to your new ACR name and image:
115-
116-
```yaml
117-
containers:
118-
- name: workflows-sample
119-
image: acrName.azurecr.io/workflows-sample:0.1.0
120-
```
121-
122-
Save and close the `deployment.yaml` file.
123-
12470
### Install Dapr on your AKS cluster
12571

12672
Install the Dapr extension on your AKS cluster. Before you start, make sure you've:
@@ -131,7 +77,7 @@ Install the Dapr extension on your AKS cluster. Before you start, make sure you'
13177
az k8s-extension create --cluster-type managedClusters --cluster-name myAKSCluster --resource-group myResourceGroup --name dapr --extension-type Microsoft.Dapr
13278
```
13379

134-
Verify Dapr has been installed by running either of the following commands:
80+
Verify Dapr has been installed by running _either_ of the following commands:
13581

13682
```sh
13783
az k8s-extension show --cluster-type managedClusters --cluster-name myAKSCluster --resource-group myResourceGroup --name dapr

0 commit comments

Comments
 (0)