Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.83 KB

iot-hub-include-create-device.md

File metadata and controls

31 lines (22 loc) · 1.83 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 a hub unless it has an entry in the identity registry. For more information, see the IoT Hub developer guide.

  1. In your IoT hub navigation menu, open IoT Devices, then select New to add a device in your IoT hub.

    Create device identity in portal

  2. In Create a device, provide a name for your new device, such as myDeviceId, and select Save. This action creates a 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 Primary Connection String 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.