apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: azure-eventhubs-binding
  namespace: default
spec:
  type: bindings.azure.eventhubs
  version: v1
  metadata:
    - name: consumerID
      value: ehcertification1
    - name: connectionString
      secretKeyRef:
        name: AzureIotHubEventHubConnectionString
        key: AzureIotHubEventHubConnectionString 
    - name: consumerGroup
      secretKeyRef:
        name: AzureEventHubsBindingsConsumerGroup
        value: AzureEventHubsBindingsConsumerGroup
    - name: storageAccountName
      secretKeyRef:
        name: AzureBlobStorageAccount
        key: AzureBlobStorageAccount
    - name: storageAccountKey
      secretKeyRef:
        name: AzureBlobStorageAccessKey
        key: AzureBlobStorageAccessKey
    - name: storageContainerName
      secretKeyRef:
        name: AzureEventHubsBindingsContainer
        key: AzureEventHubsBindingsContainer
    - name: PartitionID
      value: 0
auth:
  secretStore: envvar-secret-store
