I use Azure IoT hub DPS to register devices.
Can I set Disabled IoT device status when register Device from DPS?
How to do that?
{ "deviceId": "test", "etag": "AAAAAAAAAAE=", "deviceEtag": "NTI1OTc3Nzkx", "status": "disabled", "statusUpdateTime": "0001-01-01T00:00:00Z", "connectionState": "Disconnected",
"lastActivityTime": "0001-01-01T00:00:00Z",
"cloudToDeviceMessageCount": 0, "authenticationType": "sas",
"x509Thumbprint": { "primaryThumbprint": null, "secondaryThumbprint": null }, "version": 2, "properties": { "desired": { "$metadata": { "$lastUpdated": "2020-01-08T15:09:56.0402103Z" }, "$version": 1 }, "reported": { "$metadata": { "$lastUpdated": "2020-01-08T15:09:56.0402103Z" }, "$version": 1 } }, "capabilities": { "iotEdge": false } }
You want to register a device with DPS and have it added to the hub in a disabled state? You can't do that.