Read a message from EventHub using SAS Token RRS feed

  • Question

  • Hi ,

    I am currently using eventProcessorHost to read & send message to eventhub using connection string. It's working fine while using connection string (listen mode) but same code is not working while connecting with SAS token.

    Steps  followed: created connecting string from sas token and then used the same code.

    Error message:Failed to retrieve EventHub entities. Exception: System.UnauthorizedAccessException: The remote server returned an error: (401) Unauthorized. claim is empty.

    Same SAS key working fine while accessing from rest call.

    is there any way to read message from eventhub using rest api call? if so please assist me? 

    is there any way to read a eventhub message using sas token and eventprocessorhost?



    Friday, April 10, 2020 8:09 AM

All replies