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
-13Lines changed: 0 additions & 13 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.
Copy file name to clipboardExpand all lines: articles/iot-edge/includes/iot-edge-register-device-x509.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,6 @@ While there is no support for device registration with X.509 certificates throug
69
69
70
70
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
71
72
-

73
-
74
72
# [Azure CLI](#tab/azure-cli)
75
73
76
74
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