Share via

Exception message changed when adding Iot Hub device via Azure function

Stephens, Mike 1 Reputation point
2021-06-01T17:41:34.907+00:00

When attempting to add an Iot Hub device via an Azure function, we would previously receive "DeviceAlreadyExists" in the exception message. Now we are receiving the numeric value of "409001" in the exception message. Did something change in the Azure IoT hub that would cause a different exception message to occur? Is there a mailing list to get onto?

Azure IoT Hub
Azure IoT Hub

An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.

0 comments No comments

1 answer

Sort by: Most helpful
  1. QuantumCache 20,681 Reputation points Moderator
    2021-06-02T18:49:16.257+00:00

    Hello @Stephens, Mike

    Please refer to the below documents on the list of error codes returned by IoTHub.

    Common error codes

    409001 DeviceAlreadyExists

    We have see the expected behavior when tested from Postman PUT call. I hope this helps with your initial query.

    101814-image.png

    Please comment in the below section for further help in this matter.

    If the response is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.