Search code examples
node.jsazureazure-iot-hubazure-iot-sdk

Azure IOT Hub Device "Suspension"


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.


Solution

  • The following screen snippet shows an example for disable a device using the REST Api - Put Device:

    enter image description here Note, that the above picture is from the Azure IoT Hub Tester tool.