You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/includes/iot-edge-register-device-symmetric.md
-17Lines changed: 0 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,23 +19,17 @@ In your IoT hub in the Azure portal, IoT Edge devices are created and managed se
19
19
20
20
1. In the left pane, select **Devices** from the menu, then select **Add Device**.
21
21
22
-
:::image type="content" source="media/iot-edge-register-device-symmetric/add-edge-device.png" alt-text="Screenshot of where to find the Add Device button in the IoT Hub of the Azure portal.":::
23
-
24
22
1. On the **Create a device** page, provide the following information:
25
23
26
24
* Create a descriptive Device ID, for example `my-edge-device-1` (all lowercase). Copy this Device ID, as you'll use it later.
27
25
* Check the **IoT Edge Device** checkbox.
28
26
* Select **Symmetric key** as the authentication type.
29
27
* Use the default settings to auto-generate authentication keys, which connect the new device to your hub.
30
28
31
-
:::image type="content" source="media/iot-edge-register-device-symmetric/create-device-portal.png" alt-text="Screenshot of how to fill in the 'Create a device' form in the IoT Hub of the Azure portal.":::
32
-
33
29
1. Select **Save**.
34
30
35
31
You should see your new device listed in your IoT hub.
36
32
37
-
:::image type="content" source="media/iot-edge-register-device-symmetric/new-device-listed.png" alt-text="Screenshot your new device listed in the IoT Hub of the Azure portal.":::
38
-
39
33
# [Visual Studio Code](#tab/visual-studio-code)
40
34
41
35
### Sign in to Azure
@@ -44,8 +38,6 @@ You can use the Azure IoT extensions for Visual Studio Code to perform operation
44
38
45
39
Once Azure IoT Edge and Azure IoT Hub extensions are installed, you notice an Azure icon gets added to the left icon menu. You can sign in to your Azure account through Visual Studio Code by selecting the Azure icon and then select **Sign in to Azure**.
46
40
47
-
:::image type="content" source="media/iot-edge-register-device-symmetric/sign-in-to-azure.png" alt-text="Screenshot that shows you how to sign in to Azure through Visual Studio Code.":::
48
-
49
41
### Register a new device with Visual Studio Code
50
42
51
43
Registering a new device is akin to creating an IoT Edge device in the Azure portal. This virtual device is one of the *twins*, whereas the real world device is the other twin. Visual Studio Code can set this up for you through the following steps.
@@ -59,8 +51,6 @@ In the output console of Visual Studio Code, you see the result of the command:
59
51
60
52
You can now see your device listed under the **Azure IoT Hub** > **Devices** section of the Explorer menu.
61
53
62
-
:::image type="content" source="media/iot-edge-register-device-symmetric/view-device-in-iot-hub.png" alt-text="Screenshot that shows where to expand the Azure IoT Hub menu in the Explorer view of Visual Studio Code.":::
63
-
64
54
> [!NOTE]
65
55
> If your device is not listed, you may need to choose your IoT Hub from the link **Select IoT Hub** provided under **Azure IoT Hub** and then follow the prompts. The prompts will ask you to choose your subscription first and then your IoT Hub. This process lets Visual Studio Code know about your IoT Hub (and all devices in it). Refresh Visual Studio Code and your device should show.
66
56
@@ -80,9 +70,6 @@ This command includes three parameters:
80
70
81
71
If your CLI says **The command requires the extension azure-iot. Do you want to install it now?**, then type `Y` and press `Enter` to initiate the download to create your device.
82
72
83
-
:::image type="content" source="media/iot-edge-register-device-symmetric/create-edge-device-cli.png" alt-text="Screenshot that shows the console output from running the az iot hub device-identity create command.":::
84
-
85
-
<!-- The 3 dashes are needed to end the tabs.-->
86
73
---
87
74
88
75
Now that you have a device registered in IoT Hub, you can retrieve provisioning information used to complete the installation and provisioning of the [IoT Edge runtime](../iot-edge-runtime.md) in the next step.
@@ -95,8 +82,6 @@ Devices that use symmetric key authentication need their connection strings to c
95
82
96
83
The edge-enabled devices that connect to your IoT hub are listed on the **Devices** page of your IoT hub. If you have multiple devices, you can filter the list by selecting the type **Iot Edge Devices**, then select **Apply**.
97
84
98
-
:::image type="content" source="media/iot-edge-register-device/portal-view-devices.png" alt-text="Screenshot of how to view your devices in the Azure portal, IoT Hub." lightbox="media/iot-edge-register-device/portal-view-devices.png":::
99
-
100
85
When you're ready to set up your device, you need the connection string that links your physical device with its identity in the IoT hub. Devices that authenticate with symmetric keys have their connection strings available to copy in the portal. To find your connection string in the portal:
101
86
102
87
1. From the **Devices** page, select the IoT Edge device ID from the list.
@@ -106,8 +91,6 @@ When you're ready to set up your device, you need the connection string that lin
106
91
107
92
All the devices that connect to your IoT hub are listed in the **Azure IoT Hub** section of the Visual Studio Code Explorer. IoT Edge devices are distinguishable from non-Edge devices because they have a different icon and you see the **$edgeAgent** and **$edgeHub** modules are deployed to each IoT Edge device.
108
93
109
-
:::image type="content" source="media/iot-edge-register-device-symmetric/view-device-in-iot-hub.png" alt-text="Screenshot of how to view your list of devices in Visual Studio Code.":::
110
-
111
94
When you're ready to set up your device, you need the connection string that links your physical device with its identity in the IoT hub. Here's how to get your connection string from Visual Studio Code.
112
95
113
96
1. Right-click on the ID (name) of your device in the **Azure IoT Hub** section.
Copy file name to clipboardExpand all lines: articles/iot-edge/includes/iot-edge-register-device-x509.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,16 +61,12 @@ Devices that use X.509 certificate authentication need their IoT hub name, their
61
61
62
62
The edge-enabled devices that connect to your IoT hub are listed on the **Devices** page. You can filter the list by type *Iot Edge Device*.
63
63
64
-
:::image type="content" source="media/iot-edge-register-device/portal-view-devices.png" alt-text="Screenshot of how to view all IoT Edge devices in your IoT hub.":::
65
-
66
64
# [Visual Studio Code](#tab/visual-studio-code)
67
65
68
66
While there is no support for device registration with X.509 certificates through Visual Studio Code, you can still view your IoT Edge devices if you need to.
69
67
70
68
All the devices that connect to your IoT hub are listed in the **Azure IoT Hub** section of the Visual Studio Code Explorer. IoT Edge devices are distinguishable from non-Edge devices with a different icon, and the fact that the **$edgeAgent** and **$edgeHub** modules are deployed to each IoT Edge device.
71
69
72
-

73
-
74
70
# [Azure CLI](#tab/azure-cli)
75
71
76
72
Use the [az iot hub device-identity list](/cli/azure/iot/hub/device-identity) command to view all devices in your IoT hub. For example:
0 commit comments