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
# Connect to Azure services via Dapr components in the Azure portal
14
14
15
15
You can easily connect Dapr APIs to [backing Azure services](./dapr-overview.md#dapr-components) using a combination of [Service Connector](../service-connector/overview.md) and [Dapr](https://docs.dapr.io/). This feature creates Dapr components on your behalf with valid metadata and authenticated identity to access the Azure service.
16
16
17
-
In this guide, you'll connect Dapr Pub/Sub API to an Azure Service Bus by:
17
+
In this guide, you connect Dapr Pub/Sub API to an Azure Service Bus by:
18
18
> [!div class="checklist"]
19
19
> - Select pub/sub as the API
20
20
> - Specify Azure Service Bus as the service and required properties like namespace, queue name, and identity
@@ -45,7 +45,7 @@ For example, for a pub/sub Azure Service Bus component, you'll start with the fo
45
45
46
46
| Field | Example | Description |
47
47
| ----- | ------- | ----------- |
48
-
| Component name | mycomponent | Enter a name for your Dapr component. The name must match the component referenced in your application code. |
48
+
| Component name |`mycomponent`| Enter a name for your Dapr component. The name must match the component referenced in your application code. |
49
49
| Building block | Pub/sub | Select the [building block/API](https://docs.dapr.io/developing-applications/building-blocks/) for your component from the drop-down. |
50
50
| Component type | Service Bus | Select a component type from the drop-down. |
51
51
@@ -54,9 +54,9 @@ The component creation pane populates with different fields depending on the bui
54
54
| Field | Example | Description |
55
55
| ----- | ------- | ----------- |
56
56
| Subscription | My subscription | Select your Azure subscription |
57
-
| Namespace | mynamespace | Select the Service Bus namespace |
57
+
| Namespace |`mynamespace`| Select the Service Bus namespace |
58
58
| Authentication | User assigned managed identity | Select the subscription that contains the component you're looking for. Recommended: User assigned managed identity. |
59
-
| User assigned managed identity | testidentity | Select an existing identity from the drop-down. If you don’t already have one, you can create a new managed identity client ID. |
59
+
| User assigned managed identity |`testidentity`| Select an existing identity from the drop-down. If you don’t already have one, you can create a new managed identity client ID. |
60
60
61
61
:::image type="content" source="media/dapr-component-connection/add-pubsub-component.png" alt-text="Screenshot of the Azure platform showing the Basics tab of adding a Dapr Pub/sub component.":::
Copy file name to clipboardExpand all lines: articles/container-apps/enable-dapr.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Enable Dapr on an existing container app
3
-
description: Learn more about enabling Dapr on your Azure Container App service to develop applications.
3
+
description: Enable Dapr on your existing Azure Container App service.
4
4
ms.author: hannahhunter
5
5
author: hhunter-ms
6
6
ms.service: azure-container-apps
@@ -24,7 +24,7 @@ The following table outlines the currently supported list of Dapr sidecar config
24
24
|`--enable-dapr`|`dapr.enabled`| Enables Dapr on the container app. |
25
25
|`--dapr-app-port`|`dapr.appPort`| The port your application is listening on which is used by Dapr for communicating to your application |
26
26
|`--dapr-app-protocol`|`dapr.appProtocol`| Tells Dapr which protocol your application is using. Valid options are `http` or `grpc`. Default is `http`. |
27
-
|`--dapr-app-id`|`dapr.appId`| A unique Dapr identifier for your container app used for service discovery, state encapsulation and the pub/sub consumer ID. |
27
+
|`--dapr-app-id`|`dapr.appId`| A unique Dapr identifier for your container app used for service discovery, state encapsulation, and the pub/sub consumer ID. |
28
28
|`--dapr-max-request-size`|`dapr.httpMaxRequestSize`| Set the max size of request body http and grpc servers to handle uploading of large files. Default is 4 MB. |
29
29
|`--dapr-read-buffer-size`|`dapr.httpReadBufferSize`| Set the max size of http header read buffer in to handle when sending multi-KB headers. The default 4 KB. |
30
30
|`--dapr-api-logging`|`dapr.enableApiLogging`| Enables viewing the API calls from your application to the Dapr sidecar. |
# Quickstart: Deploy a Dapr application to Azure Container Apps with an Azure Resource Manager or Bicep template
15
15
16
-
[Dapr](./dapr-overview.md) (Distributed Application Runtime) helps developers build resilient, reliable microservices. In this quickstart, you learn how to enable Dapr sidecars to run alongside microservices container apps that produce and consume messages and store them in an Azure Blob Storage state store. Using either Azure Resource Manager or Bicep templates, you'll:
16
+
[Dapr](./dapr-overview.md) (Distributed Application Runtime) helps developers build resilient, reliable microservices. In this quickstart, you enable Dapr sidecars to run alongside two container apps that produce and consume messages, stored in an Azure Blob Storage state store. Using either Azure Resource Manager or Bicep templates, you'll:
17
17
18
18
> [!div class="checklist"]
19
19
>
@@ -132,7 +132,7 @@ This command deploys:
132
132
- A user-assigned identity with access to the Azure Blob storage via a Storage Data Contributor role assignment
133
133
- A Dapr component of `"type": "state.azure.blobstorage"` scoped for use by the `nodeapp` for storing state.
134
134
- The Dapr-enabled, headless `pythonapp` that invokes the `nodeapp` service using Dapr service invocation.
135
-
- A Microsot Entra ID role assignment for the Node.js app used by the Dapr component to establish a connection to Blob storage.
135
+
- A Microsoft Entra ID role assignment for the Node.js app used by the Dapr component to establish a connection to Blob storage.
136
136
137
137
## Verify the result
138
138
@@ -202,7 +202,7 @@ nodeapp Got a new order! Order ID: 63 PrimaryResult 2021-10-22
202
202
203
203
## Clean up resources
204
204
205
-
Since `pythonapp` continuously makes calls to `nodeapp` with messages that get persisted into your configured state store, it is important to complete these cleanup steps to avoid ongoing billable operations.
205
+
Since `pythonapp` continuously makes calls to `nodeapp` with messages that get persisted into your configured state store, it's important to complete these cleanup steps to avoid ongoing billable operations.
206
206
207
207
If you'd like to delete the resources created as a part of this walkthrough, run the following command.
0 commit comments