apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: messagebus
  namespace: default
spec:
  type: pubsub.azure.servicebus.topics
  version: v1
  metadata:
    - name: consumerID
      value: optionscertification
    - name: namespaceName
      secretKeyRef:
        name: AzureServiceBusNamespace
        key: AzureServiceBusNamespace
    - name: azureTenantId
      secretKeyRef:
        name: AzureCertificationTenantId
        key: AzureCertificationTenantId
    - name: azureClientId
      secretKeyRef:
        name: AzureCertificationServicePrincipalClientId
        key: AzureCertificationServicePrincipalClientId
    - name: azureClientSecret
      secretKeyRef:
        name: AzureCertificationServicePrincipalClientSecret
        key: AzureCertificationServicePrincipalClientSecret
auth:
  secretstore: envvar-secret-store