Skip to content

Commit 0866d62

Browse files
committed
more information to add multple Dapr components via Bicep and ARM
1 parent 572a54a commit 0866d62

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

articles/container-apps/dapr-overview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ The `pubsub.yaml` spec will be scoped to the dapr-enabled container apps with ap
100100
101101
# [Bicep](#tab/bicep)
102102
103-
This resource defines a Dapr component called `dapr-pubsub` via Bicep. The Dapr component is defined as a child resource of your Container Apps environment. The `dapr-pubsub` component is scoped to the Dapr-enabled container apps with app ids `publisher-app` and `subscriber-app`:
103+
This resource defines a Dapr component called `dapr-pubsub` via Bicep. The Dapr component is defined as a child resource of your Container Apps environment. To define multiple components, you can add a `daprComponent` resource for each Dapr component.
104+
105+
The `dapr-pubsub` component is scoped to the Dapr-enabled container apps with app ids `publisher-app` and `subscriber-app`:
104106

105107
```bicep
106108
resource daprComponent 'daprComponents@2022-01-01-preview' = {
@@ -131,7 +133,9 @@ resource daprComponent 'daprComponents@2022-01-01-preview' = {
131133

132134
# [ARM](#tab/arm)
133135

134-
This resource defines a Dapr component called `dapr-pubsub` via ARM. The Dapr component is defined as a child resource of your Container Apps environment. The `dapr-pubsub` component will be scoped to the Dapr-enabled container apps with app ids `publisher-app` and `subscriber-app`:
136+
A Dapr component is defined as a child resource of your Container Apps environment. To define multiple components, you can add a `daprComponent` resource for each Dapr component.
137+
138+
This resource defines a Dapr component called `dapr-pubsub` via ARM. The `dapr-pubsub` component will be scoped to the Dapr-enabled container apps with app ids `publisher-app` and `subscriber-app`:
135139

136140
```json
137141
{

articles/container-apps/microservices-dapr.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,10 @@ 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-
185183
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.
186184

187-
If you need to add multiple components, run the `az containerapp env dapr-component set` command multiple times to add each component.
185+
If you need to add multiple components, create a separate YAML file for each component and run the `az containerapp env dapr-component set` command multiple times to add each component. For more information about configuring Dapr components, see [Configure Dapr components](dapr-overview.md#configure-dapr-components).
186+
188187

189188
# [Bash](#tab/bash)
190189

0 commit comments

Comments
 (0)