ms-iot / azure-client-tools

Azure Client Tools
Other
43 stars 37 forks source link

DPS Reprovisioning to new IoT Hub and disenrollment/deprovisioning #40

Closed thj-dk closed 5 years ago

thj-dk commented 5 years ago

Reprovisioning and disenrollment through Azure Device Provisioning Service, are these features supported? From our tests, it doesn't seem like the Azure DM client is communicating with the DPS service once provisioned. Neither on reboot.

I'd like to move devices from one hub to another, either by migrating data, or resetting to initial configuration, or disabling devices altogether, from accessing the hubs.

And in case of device re-location to another customer or similar, we'd like to reset configuration, or disenroll/deprovision the device.

gmileka commented 5 years ago

Hi thj-dk,

Correct, today we do not support this. The current logic is that if the device has been provisioned, we do not attempt to re-provision it. We can definitely look into supporting this scenario in the future.

I'll leave this open as our team discuss what we can do.

thanks, george

thj-dk commented 5 years ago

Alright. In case I need to move a device from one hub to another - how would you approach that then?With or without access to the device.

gmileka commented 5 years ago

The following steps would need to take place: