If you want to programmatically implement device management in IoTHub, you should use a package . Microsoft.Azure.Devices. This package provides a very simple API for device management. IotHub maintains under the hub a DocumentDB, which you typically...