409001 DeviceAlreadyExists

This article describes the causes and solutions for 409001 DeviceAlreadyExists errors.

Symptoms

When trying to register a device in IoT Hub, the request fails with the error 409001 DeviceAlreadyExists.

Cause

There's already a device with the same device ID in the IoT hub.

Solution

Use a different device ID and try again.