Manage IoT Hub Devices in Browser


internet of things device

Image from http://www.plasmacomp.com/blogs/internet-of-things-iot-device-examples

点击此处查看中文版本

Days ago, I wrote a post to introduce two easier ways to add devices into IoT Hub. You can add and remove devices in seconds with the mentioned tools.

Today, I will introduce a new web-based tool for IoT Hub device management to you. With this tool, you can not only add and remove devices, but also do something else to the devices, such as generate device SAS token, view device connection state and etc. You can visit https://azure-iothub.github.io/device-management/ to use this tool in your favorite browser.

The first thing you need to do is to find your IoT Hub connection string. Open your IoT Hub dashboard in Azure portal, switch to Shared access policies tab, click iothubowner, and copy Connection string—primary key.

IoT Hub connection string

Then paste it into Connection String input box in the tool.

paste connection string

After that, click apply button, and you will see a device list of your IoT Hub.

device list

If the device icon is in gray, it means the device is disabled. You can add new devices by clicking Add a new device button. To remove a device or view a device detail, click a device in the list, and click Delete or Detail button.

buttons

In device detail page, you can see device information including device primary key, device connection string, device state, last activity time and etc.

device detail

Also, you can generate device SAS token in device detail page.

sas token

Now let’s back to device list. Expect Detail and Delete, there’s another button called connect. You can click connect button, and the device tool will open for you to connect to the device. In the new tool page, device connection string has already been filled, and what you need to do is just click Connect button.

device tool

You can learn more about the device tool from https://blogs.msdn.microsoft.com/zheli/2017/03/06/web-based-azure-iot-hub-developer-tool/.

The device management tool can only list top 20 devices in your IoT Hub currently, we may increase this number in the feature when we think it’s necessary.

Comments (0)

Skip to main content