MQTT messaged displayed in Event Hub Data Explorer are data_base64

Mark Pope 50 Reputation points
2025-04-07T19:08:23.05+00:00

I'm able to publish MQTT messages from my client an route them to an Event Hub. The Event Hub Data Explorer show the message payloads as data_base64. Is there a way to display them as JSON? If not is there another azure component I can use?

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
711 questions
{count} votes

Accepted answer
  1. Chandra Boorla 12,085 Reputation points Microsoft External Staff
    2025-04-08T04:35:27.0233333+00:00

    @Mark Pope

    Thank you for the follow up question!

    Totally understand - if your customers require MQTT and switching to IoT Hub isn’t viable, then continuing with Event Hub is a solid path.

    In this setup, the best options for decoding and working with the Base64-encoded payloads are:

    Azure Functions – for automated decoding and downstream routing

    Lightweight and serverless.

    Triggered by Event Hub.

    Great for parsing the payload, logging, or forwarding decoded JSON to another service (e.g., Azure SQL, Storage, Cosmos DB).

    Azure Stream Analytics – for real-time decoding and transformation

    Real-time insights and processing.

    Easy to plug in dashboards (like Power BI).

    Ideal for scenarios where you want to enrich/filter/analyze MQTT messages as they arrive.

    Both of these options will help you automatically decode data_base64 payloads into JSON format, so you don’t have to manually inspect each message.

    I hope this information helps.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.