Skip to content

Commit 0f1331c

Browse files
committed
explain how to add multiple dapr components using CLI and YAML
1 parent 5f3efa4 commit 0f1331c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/container-apps/dapr-overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ Based on your needs, you can "plug in" certain Dapr component types like state s
7171
7272
# [YAML](#tab/yaml)
7373

74-
When defining a Dapr component via YAML, you will pass your component manifest into the Azure CLI. For example, deploy a `pubsub.yaml` component using the following command:
74+
When defining a Dapr component via YAML, you will pass your component manifest into the Azure CLI. When configuring multiple components, you will create a separate YAML file and run the Azure CLI command for each component.
75+
76+
For example, deploy a `pubsub.yaml` component using the following command:
7577

7678
```azurecli
77-
az containerapp env dapr-component set --name ENVIRONMENT_NAME --resource-group RESOURCE_GROUP_NAME --dapr-component-name pubsub--yaml "./pubsub.yaml"
79+
az containerapp env dapr-component set --name ENVIRONMENT_NAME --resource-group RESOURCE_GROUP_NAME --dapr-component-name pubsub --yaml "./pubsub.yaml"
7880
```
7981

8082
The `pubsub.yaml` spec will be scoped to the dapr-enabled container apps with app ids `publisher-app` and `subscriber-app`.

articles/container-apps/microservices-dapr.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ If you've changed the `STORAGE_ACCOUNT_CONTAINER` variable from its original val
180180
> [!NOTE]
181181
> Container Apps does not currently support the native [Dapr components schema](https://docs.dapr.io/operations/components/component-schema/). The above example uses the supported schema.
182182

183+
For more information about configuring Dapr components, see [Configure Dapr components](dapr-overview.md#configure-dapr-components).
184+
183185
Navigate to the directory in which you stored the *statestore.yaml* file and run the following command to configure the Dapr component in the Container Apps environment.
184186

185187
# [Bash](#tab/bash)

0 commit comments

Comments
 (0)