From eaed1917139fd4429acb41c55bc88dc999d2649b Mon Sep 17 00:00:00 2001 From: Sivamuthu Kumar Date: Fri, 20 Mar 2020 18:45:24 -0400 Subject: [PATCH] Update EventHub single partition id spec (#449) Updated EventHub binding spec to include the information on sending the event to a single partition. --- reference/specs/bindings/eventhubs.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/specs/bindings/eventhubs.md b/reference/specs/bindings/eventhubs.md index 5b3ecd5ab..33bb267f0 100644 --- a/reference/specs/bindings/eventhubs.md +++ b/reference/specs/bindings/eventhubs.md @@ -1,6 +1,6 @@ # Azure Event Hubs Binding Spec -See (this)[https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-framework-getstarted-send] for instructions on how to set up an Event Hub. +See [this](https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-framework-getstarted-send) for instructions on how to set up an Event Hub. ```yml apiVersion: dapr.io/v1alpha1 @@ -19,7 +19,9 @@ spec: - name: storageAccountKey # Azure Storage Account Key value: "accountKey" - name: storageContainerName # Azure Storage Container Name - value: "containerName" + value: "containerName" + - name: partitionID # (Optional) PartitionID to send and receive events + value: 0 ``` - `connectionString` is the [EventHubs connection string](https://docs.microsoft.com/en-us/azure/event-hubs/authorize-access-shared-access-signature). Note that this is the EventHub itself and not the EventHubs namespace. Make sure to use the child EventHub shared access policy connection string. @@ -27,5 +29,6 @@ spec: - `storageAccountName` Is the name of the account of the Azure Storage account to persist checkpoints data on. - `storageAccountKey` Is the account key for the Azure Storage account to persist checkpoints data on. - `storageContainerName` Is 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 securly storing and retrieving secrets refer to [Setup Secret Store](../../../howto/setup-secret-store)