title | description | services | author | ms.service | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|
include file |
include file |
iot-hub |
robinsh |
iot-hub |
include |
11/06/2018 |
robinsh |
include file |
In this section, you create a device identity in the identity registry in your IoT hub. A device cannot connect to IoT hub unless it has an entry in the identity registry. For more information, see the "Identity registry" section of the IoT Hub developer guide
-
In your IoT hub navigation menu, open IoT Devices, then click Add to register a new device in your IoT hub.
-
Provide a name for your new device, such as myDeviceId, and click Save. This action creates a new device identity for your IoT hub.
[!INCLUDE iot-hub-pii-note-naming-device]
-
After the device is created, open the device from the list in the IoT devices pane. Copy the Connection string---primary key to use later.
Note
The IoT Hub identity registry only stores device identities to enable secure access to the IoT hub. It stores device IDs and keys to use as security credentials, and an enabled/disabled flag that you can use to disable access for an individual device. If your application needs to store other device-specific metadata, it should use an application-specific store. For more information, see IoT Hub developer guide.