0

I'm trying to understand Azure Device Provisioning Service. I provision my virtual device using X.509 certificate and send messages in IoThub.

Now,I tried to temporary disable my device as mention in docs but I don't see any impact in IoThub side. I can see device status is disabled in DPS but enabled in IoThub.

Last I removed my device from DPS but still I can see device in IoThub.

enter image description here

Pankaj Rawat
  • 4,037
  • 6
  • 41
  • 73

1 Answers1

1

The behaviour you're seeing is correct. The Device Provisioning Service will assign your device to an IoT Hub, but will not remove it once you delete the enrollment. The process of deprovisioning a device is described here.

Matthijs van der Veer
  • 3,865
  • 2
  • 12
  • 22
  • you are correct. but I'm wondering why MS added manual deregistration process? why not auto deregistration. – Pankaj Rawat Feb 14 '20 at 09:31
  • I agree it would be a convenient option. But in many cases, removing a device enrollment doesn't mean the device should be blocked from the IoT Hub. There are cases where a device only needs the DPS once. – Matthijs van der Veer Feb 14 '20 at 13:00