mirror of https://github.com/dapr/docs.git
1.9 KiB
1.9 KiB
Azure Event Hubs Binding Spec
See this for instructions on how to set up an Event Hub.
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <name>
spec:
type: bindings.azure.eventhubs
metadata:
- name: connectionString # Azure EventHubs connection string
value: "Endpoint=sb://****"
- name: consumerGroup # EventHubs consumer group
value: "group1"
- name: storageAccountName # Azure Storage Account Name
value: "accountName"
- name: storageAccountKey # Azure Storage Account Key
value: "accountKey"
- name: storageContainerName # Azure Storage Container Name
value: "containerName"
- name: partitionID # (Optional) PartitionID to send and receive events
value: 0
connectionStringis the EventHubs connection string. Note that this is the EventHub itself and not the EventHubs namespace. Make sure to use the child EventHub shared access policy connection string.consumerGroupis the name of an EventHubs Consumer Group to listen on.storageAccountNameIs the name of the account of the Azure Storage account to persist checkpoints data on.storageAccountKeyIs the account key for the Azure Storage account to persist checkpoints data on.storageContainerNameIs the name of the container in the Azure Storage account to persist checkpoints data on.partitionID(Optional) ID of the partition to send and receive events.
Note: In production never place passwords or secrets within Dapr components. For information on securely storing and retrieving secrets refer to Setup Secret Store