Skip to content

Commit 787426a

Browse files
committed
update and add bernd suggestion
Signed-off-by: Hannah Hunter <[email protected]>
1 parent a036128 commit 787426a

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

articles/container-apps/dapr-components.md

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ scopes:
154154

155155
#### Referencing Dapr secret store components
156156

157-
Once you [create a Dapr secret store using one of the previous approaches](#creating-a-dapr-secret-store-component), you can reference that secret store from other Dapr components in the same environment.
157+
Once you [create a Dapr secret store using one of the previous approaches](#creating-a-dapr-secret-store-component), you can reference that secret store from other Dapr components in the same environment. The following example demonstrates using Entra ID authentication.
158158

159159
```yaml
160160
componentType: pubsub.azure.servicebus.queue
@@ -192,8 +192,16 @@ componentType: pubsub.azure.servicebus.queue
192192
version: v1
193193
secretStoreComponent: "my-secret-store"
194194
metadata:
195-
- name: connectionString
196-
secretRef: sb-root-connectionstring
195+
- name: namespaceName
196+
# Required when using Azure Authentication.
197+
# Must be a fully-qualified domain name
198+
value: "[your_servicebus_namespace.servicebus.windows.net]"
199+
- name: azureTenantId
200+
value: "[your_tenant_id]"
201+
- name: azureClientId
202+
value: "[your_client_id]"
203+
- name: azureClientSecret
204+
secretRef: azClientSecret
197205
scopes:
198206
- publisher-app
199207
- subscriber-app
@@ -212,8 +220,16 @@ resource daprComponent 'daprComponents@2022-03-01' = {
212220
secretStoreComponent: 'my-secret-store'
213221
metadata: [
214222
{
215-
name: 'connectionString'
216-
secretRef: 'sb-root-connectionstring'
223+
name: 'namespaceName'
224+
// Required when using Azure Authentication.
225+
// Must be a fully-qualified domain name
226+
value: '[your_servicebus_namespace.servicebus.windows.net]'
227+
name: 'azureTenantId'
228+
value: '[your_tenant_id]'
229+
name: 'azureClientId'
230+
value: '[your_client_id]'
231+
name: 'azureClientSecret'
232+
secretRef: 'azClientSecret'
217233
}
218234
]
219235
scopes: [
@@ -240,8 +256,14 @@ This resource defines a Dapr component called `dapr-pubsub` via ARM.
240256
"secretScoreComponent": "my-secret-store",
241257
"metadata": [
242258
{
243-
"name": "connectionString",
244-
"secretRef": "sb-root-connectionstring"
259+
"name": "namespaceName",
260+
"value": "[your_servicebus_namespace.servicebus.windows.net]",
261+
"name": "azureTenantId",
262+
"value": "[your_tenant_id]",
263+
"name": "azureClientId",
264+
"value": "[your_client_id]",
265+
"name": "azureClientSecret",
266+
"secretRef": "azClientSecret"
245267
}
246268
],
247269
"scopes": ["publisher-app", "subscriber-app"]

0 commit comments

Comments
 (0)