How to Monitor Azure IoT Hub Traffic

You have a couple different options to monitor your incoming and outgoing Azure IoT Hub traffic.

Azure CLI IoT Extension

See this ref for more info:

Desktop App

On Windows machines, you can use the Azure IoT Hub Device Explorer utility. Under the Data tab, select your device, click Monitor and you’ll start to see messages in the Event Hub Data

Node [Deprecated]

You can also use the iothub-explorer npm package.

npm install -g iothub-explorer@latest

and then

iothub-explorer --login hubconnectionstring monitor-events deviceid

Jon