Azure IoT Edge with Raspberry Pi3 iothub-explorer: endpoint undefined error RRS feed

  • Question

  • Regarding https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-iot-edge-physical-device

    Have followed this walkthrough successful until:

    using iothub-explorer you can monitor device-to-cloud messages using the following command: 

    iothub-explorer monitor-events --login "HostName=FT-IoTHub.azure-devices.net; SharedAccessKeyName=iothubowner;SharedAccessKey=2t6..................tVI=”  

    that I ran in command prompt in Windows 8.1. It replyed with:

    "Monitoring events from all devices…

    Error: error receiving reply from Event Hub management endpoint: undefined"

    The walkthrough doesn't include any instructions of creating a Event Hub or endpoint! Is that a mistake?

    That I tried with some success.

    I can successful login with this command:

    iothub-explorer login “HostName=FT-IoTHub.azure-devices.net; SharedAccessKeyName=iothubowner;SharedAccessKey=2t6..........................tVI=”

    reply: "Session started..

    The next command:

    "iothub-explorer create SensorTag_01 --connection-string"

    replied with:

    "Error: UnauthorizedError: Unauthorized"

    What is causing these errors, and how to solve them? All suggestions are appreciated. Thanks.

    Tuesday, September 12, 2017 10:24 PM

All replies

  • Dear friend,

    I think if you use Windows, you can monitor the events using Device Explore, which is available on github:


    Furthermore, you can use this tool to create device SensorTag_01 and get the connection string.

    Keep Fighting

    Wednesday, September 13, 2017 6:11 AM
  • You could try the cross-platform Azure IoT Toolkit extension for Visual Studio Code. It could monitor device-to-cloud message, manage Iot Hub Devices (create, delete, view), and also several other features to manage your Iot Hub.

    • Proposed as answer by Qingqing Sun Thursday, September 14, 2017 5:16 AM
    Thursday, September 14, 2017 12:22 AM
  • Thanks, I will try your suggestion: running Device Explorer locally on my Windows 8.1 PC.

    and let you know my results..

    Just wonder what is the difference to the Device Explorer from Azure Cloud that I can access from my IoThub-Device Explorer- Device Detail of SensorTag_01? From that Device Explorer I can do three things, but not see messages from Device. 


    But I can/could toggle the RED/GREEN Led and SensorTag_01 with JSON messages


    Friday, September 15, 2017 6:25 PM
  • Downloaded and installed SetupDeviceExplorer.msi from above URL. I noticed a difference in the Program title. In Githubs readme.md its "Device Explorer", on my pc its called "Device Explorer Twin"?? Is that a new name for the program? It certainly acts different than expected. Will try to build the source code.

    I was able to pass the configuration page..

    This error came when enter the Management tab..

    Tried to create device with my sensor name "SensorTag_01", it had already generated some new keys?

    Push create gave me this error message..


    Friday, September 15, 2017 7:43 PM
  • Thanks for your suggestion, Sun!

    I installed Visual Studio Code and the IOT HUB DEVICES extension all good, but when I selected "IoT: Set IoT Hub Connection String" nothing happent, besides 

    display the Error "Command 'azure-iot-tootkit.refreshDeviceTree' not found!? 



    Friday, September 15, 2017 11:58 PM
  • Hi, pihlung. Could you please uninstall an re-install the Azure IoT Toolkit extension again? Sometimes, this error is due to the extension is not installed correctly.
    Saturday, September 16, 2017 2:13 AM
  • Thanks for all the feedback. 

    I have to put this on the back burner for a little bit..


    Tuesday, September 19, 2017 3:32 PM