2

Given an Azure IOT Hub with many thousands of connected devices. Given that some subset of the devices have some combination of software and hardware issues such that they are flooding IOT Hub with (bad) traffic.

How do we "suspend" or otherwise mark a specific device or device(s), without removal from the Device Registry, such that the IOT Hub SDK client library (in our case, https://github.com/Azure/azure-iot-sdk-node/tree/master/device) will return an error locally on the device?

The idea would be that we'd want to freeze traffic coming out of the device(s) until we decided to allow it again.

4

2 回答 2

1

以下屏幕片段显示了使用 REST Api - Put Device 禁用设备的示例:

在此处输入图像描述 请注意,上图来自Azure IoT Hub Tester工具。

于 2018-01-19T17:12:38.010 回答
0

我们的想法是我们希望冻结来自设备的流量,直到我们决定再次允许它。

我很确定你知道这一点,但我只是想澄清一下,禁用设备不会“冻结来自设备的流量”——设备仍会敲开集线器的门,当设备被禁用时,集线器将不会处理数据。

官方文档指出,禁用设备是因为“如果出于任何原因,您认为设备已受到损害或已成为未经授权的设备”,这似乎适合您的情况。

值得指出的是,根据您的配置设置,可以允许设备在不同的设备 ID 下注册并继续发送数据。


顺便提一句。要禁用的 UI 路径是 portal.azure.com -> IoT Hub -> IoT 设备 -> 查找设备 -> 禁用 ![在此处输入图像描述

于 2020-12-01T03:42:38.923 回答