Message routing after device deletion from IoT Hub

afcec 21 Reputation points
2020-12-23T10:43:08.383+00:00

Hi, I have a complete IoT platform successfully working based on Azure IoT services but I have recently identified a problem and I need someone to shed some light on it:

We have a broker consuming the different messages routed from the IoT Hub to the EventHub. Under some specific circumstances, we may need to delete a device from the IoT Hub (IoT Devices --> Delete). From that moment, the broker will no longer receive any message from the device, although this device registers again with the DPS and then connects to the IoT Hub. How can I receive those messages after the device is deleted?

Thanks!

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,103 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 28,081 Reputation points MVP
    2020-12-23T16:24:50.87+00:00

    Hello @afcec ,

    So the broker is attached to an event hub that gets messages routed by the IoT Hub?

    Can you check the DPS/IoTHub tries to create the same device again in the (same) IoT Hub (after a reprovisioning)? Is the device actually recreated?

    If recreated, can you check the IoT hub start ingesting messages again from this device?

    If the route towards the event hub is using tags in the condition, can you check that the recreated device get's the correct tags?

    1 person found this answer helpful.
    0 comments No comments