|
5 | 5 | author: robinsh
|
6 | 6 | ms.service: iot-hub
|
7 | 7 | ms.topic: include
|
8 |
| - ms.date: 11/06/2018 |
| 8 | + ms.date: 10/21/2021 |
9 | 9 | ms.author: robinsh
|
10 | 10 | ms.custom: include file
|
11 | 11 | ---
|
12 | 12 | <!-- put the ## header in the file that includes this file -->
|
13 | 13 |
|
14 | 14 | 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](../articles/iot-hub/iot-hub-devguide-identity-registry.md#identity-registry-operations).
|
15 | 15 |
|
16 |
| -1. In your IoT hub navigation menu, open **IoT Devices**, then select **New** to add a device in your IoT hub. |
| 16 | +1. In your IoT hub navigation menu, open **Devices**, then select **Add Device** to add a device in your IoT hub. |
17 | 17 |
|
18 |
| -  |
| 18 | + :::image type="content" source="./media/iot-hub-include-create-device/create-identity-portal-vs2019.png" alt-text="Screen capture that shows how to create a device identity in the portal" border="true"::: |
19 | 19 |
|
20 | 20 | 1. 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. Leave **Auto-generate keys** checked so that the primary and secondary keys will be generated automatically.
|
21 | 21 |
|
22 |
| -  |
| 22 | + :::image type="content" source="./media/iot-hub-include-create-device/create-a-device-vs2019.png" alt-text="Screen capture that shows how to add a new device" border="true"::: |
23 | 23 |
|
24 |
| - [!INCLUDE [iot-hub-pii-note-naming-device](iot-hub-pii-note-naming-device.md)] |
| 24 | + [!INCLUDE [iot-hub-pii-note-naming-device](iot-hub-pii-note-naming-device.md)] |
25 | 25 |
|
26 |
| -1. After the device is created, open the device from the list in the **IoT devices** pane. Copy the **Primary Connection String**. This connection string is used by device code to communicate with the hub. |
| 26 | +1. After the device is created, open the device from the list in the **Devices** pane. Copy the **Primary Connection String**. This connection string is used by device code to communicate with the hub. |
27 | 27 |
|
28 |
| - By default, the keys and connection strings are masked as they are sensitive information. If you click the eye icon, they are revealed as shown in the image below. It is not necessary to reveal them to copy them with the copy button. |
| 28 | + By default, the keys and connection strings are masked as they are sensitive information. If you click the eye icon, they are revealed. It is not necessary to reveal them to copy them with the copy button. |
29 | 29 |
|
30 |
| -  |
| 30 | + :::image type="content" source="./media/iot-hub-include-create-device/device-details-vs2019.png" alt-text="Screen capture that shows the device connection string" border="true"::: |
31 | 31 |
|
32 | 32 | > [!NOTE]
|
33 | 33 | > 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](../articles/iot-hub/iot-hub-devguide-identity-registry.md).
|
0 commit comments