Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.81 KB

iot-hub-include-create-device.md

File metadata and controls

32 lines (22 loc) · 1.81 KB
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

  1. In your IoT hub navigation menu, open IoT Devices, then click Add to register a new device in your IoT hub.

    Create device identity in portal

  2. Provide a name for your new device, such as myDeviceId, and click Save. This action creates a new device identity for your IoT hub.

    Add a new device

    [!INCLUDE iot-hub-pii-note-naming-device]

  3. 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.

    Device connection string

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.