Thanks for reaching out on Microsoft Q&A
Use Azure Functions or Azure Stream Analytics to decode Sparkplug B protobuf payloads after Event Grid ingestion but before forwarding to Event Hub
Azure Event Grid subscription triggers an Azure Function
· The Event Grid receives Sparkplug B MQTT messages (still base64 protobuf encoded).
· The Azure Function is triggered by the Event Grid event.
Azure Function decodes the Sparkplug B protobuf payload
· Use a Sparkplug B protobuf .proto definition and Google Protobuf library to decode the base64 payload into JSON or structured data.
· This converts binary protobuf payloads to readable JSON before any further processing.
Azure Function publishes the decoded data to Azure Event Hub
· The decoded JSON or clean data is sent to Event Hub.
· Downstream systems consuming Event Hub receive decoded, readable data.