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/quickstart-linux.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Quickstart create an Azure IoT Edge device on Linux | Microsoft Docs
2
+
title: Quickstart creates an Azure IoT Edge device on Linux | Microsoft Docs
3
3
description: In this quickstart, learn how to create an IoT Edge device on Linux and then deploy prebuilt code remotely from the Azure portal.
4
4
author: PatAltimore
5
5
ms.author: patricka
@@ -222,7 +222,7 @@ Select **Next: Routes** to continue to the next step of the wizard.
222
222
223
223
A route named *SimulatedTemperatureSensorToIoTHub* was created automatically when you added the module from Azure Marketplace. This route sends all messages from the simulated temperature module to IoT Hub.
224
224
225
-

225
+

Copy file name to clipboardExpand all lines: articles/iot-edge/quickstart.md
+21-27Lines changed: 21 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In this quickstart, you'll learn how to:
25
25
* Install and start the IoT Edge for Linux on Windows runtime on your device.
26
26
* Remotely deploy a module to an IoT Edge device and send telemetry.
27
27
28
-

28
+
:::image type="content" source="./media/quickstart/install-edge-full.png" alt-text="Diagram that shows the architecture of this quickstart for your device and cloud.":::
29
29
30
30
This quickstart walks you through how to set up your Azure IoT Edge for Linux on Windows device. Then, you'll deploy a module from the Azure portal to your device. The module you'll use is a simulated sensor that generates temperature, humidity, and pressure data. Other Azure IoT Edge tutorials build on the work you do here by deploying modules that analyze the simulated data for business insights.
31
31
@@ -57,7 +57,7 @@ Make sure your IoT Edge device meets the following requirements:
57
57
58
58
Start by creating an IoT hub with the Azure CLI.
59
59
60
-

60
+
:::image type="content" source="./media/quickstart/create-iot-hub.png" alt-text="Diagram that shows the step to create an I o T hub.":::
61
61
62
62
The free level of Azure IoT Hub works for this quickstart. If you've used IoT Hub in the past and already have a hub created, you can use that IoT hub.
63
63
@@ -73,7 +73,7 @@ If you get an error because you already have one free hub in your subscription,
73
73
74
74
Register an IoT Edge device with your newly created IoT hub.
75
75
76
-

76
+
:::image type="content" source="./media/quickstart/register-device.png" alt-text="Diagram that shows the step to register a device with an I o T hub identity.":::
77
77
78
78
Create a device identity for your simulated device so that it can communicate with your IoT hub. The device identity lives in the cloud, and you use a unique device connection string to associate a physical device to a device identity.
79
79
@@ -95,13 +95,13 @@ IoT Edge devices behave and can be managed differently than typical IoT devices.
95
95
96
96
1. Copy the value of the `connectionString` key from the JSON output and save it. This value is the device connection string. You'll use it to configure the IoT Edge runtime in the next section.
97
97
98
-

98
+
:::image type="content" source="./media/quickstart/retrieve-connection-string.png" alt-text="Screenshot that shows the connectionString output in Cloud Shell." lightbox="./media/quickstart/retrieve-connection-string.png":::
99
99
100
100
## Install and start the IoT Edge runtime
101
101
102
102
Install IoT Edge for Linux on Windows on your device, and configure it with the device connection string.
103
103
104
-

104
+
:::image type="content" source="./media/quickstart/start-runtime.png" alt-text="Diagram that shows the step to start the IoT Edge runtime.":::
105
105
106
106
Run the following PowerShell commands on the target device where you want to deploy Azure IoT Edge for Linux on Windows. To deploy to a remote target device using PowerShell, use [Remote PowerShell](/powershell/module/microsoft.powershell.core/about/about_remote) to establish a connection to a remote device and run these commands remotely on that device.
107
107
@@ -155,7 +155,7 @@ Run the following PowerShell commands on the target device where you want to dep
155
155
156
156
1. Enter 'O' or 'R' to toggle **Optional diagnostic data** on or off, depending on your preference. A successful deployment is pictured below.
157
157
158
-

158
+
:::image type="content" source="./media/quickstart/successful-powershell-deployment.png" alt-text="A successful deployment will say Deployment successful at the end of the messages." lightbox="./media/quickstart/successful-powershell-deployment.png":::
159
159
160
160
1. Provision your device using the device connection string that you retrieved in the previous section. Replace the placeholder text with your own value.
161
161
@@ -169,13 +169,7 @@ Your IoT Edge device is now configured. It's ready to run cloud-deployed modules
169
169
170
170
Manage your Azure IoT Edge device from the cloud to deploy a module that sends telemetry data to IoT Hub.
171
171
172
-

Include content included below to support versioned steps in Linux quickstart. Can update include file once Windows quickstart supports v1.2
178
-
-->
172
+
:::image type="content" source="./media/quickstart/deploy-module.png" alt-text="Diagram that shows the step to deploy a module.":::
179
173
180
174
One of the key capabilities of Azure IoT Edge is deploying code to your IoT Edge devices from the cloud. *IoT Edge modules* are executable packages implemented as containers. In this section, you'll deploy a pre-built module from the [IoT Edge Modules section of Azure Marketplace](https://azuremarketplace.microsoft.com/marketplace/apps/category/internet-of-things?page=1&subcategories=iot-edge-modules) directly from Azure IoT Hub.
181
175
@@ -189,42 +183,42 @@ Follow these steps to deploy your first module from Azure Marketplace.
189
183
190
184
1. Select the device ID of the target device from the list of devices.
191
185
192
-
When you create a new IoT Edge device, it will display the status code `417 -- The device's deployment configuration is not set` in the Azure portal. This status is normal, and means that the device is ready to receive a module deployment.
186
+
>[!NOTE]
187
+
>When you create a new IoT Edge device, it will display the status code `417 -- The device's deployment configuration is not set` in the Azure portal. This status is normal, and means that the device is ready to receive a module deployment.
193
188
194
189
195
190
1. On the upper bar, select **Set Modules**.
196
191
197
-

192
+
:::image type="content" source="./media/quickstart/select-set-modules.png" alt-text="Screenshot that shows location of the Set Modules tab.":::
198
193
199
194
1. Under **IoT Edge Modules**, open the **Add** drop-down menu, and then select **Marketplace Module**.
200
195
201
-

196
+
:::image type="content" source="./media/quickstart/add-marketplace-module.png" alt-text="Screenshot that shows the Add drop-down menu.":::
202
197
203
198
1. In **IoT Edge Module Marketplace**, search for and select the `Simulated Temperature Sensor` module.
204
199
205
200
The module is added to the IoT Edge Modules section with the desired **running** status.
206
201
207
202
1. Select **Next: Routes** to continue to the next step of the wizard.
208
203
209
-

204
+
:::image type="content" source="./media/quickstart/view-temperature-sensor-next-routes.png" alt-text="Screenshot that shows where to select the Next:Routes button.":::
210
205
211
-
1. On the **Routes** tab, remove the default route, **route**, and then select **Next: Review + create** to continue to the next step of the wizard.
206
+
1. On the **Routes** tab select **Next: Review + create** to continue to the next step of the wizard.
212
207
213
-
>[!Note]
214
-
>Routes are constructed by using name and value pairs. You should see two routes on this page. The default route, **route**, sends all messages to IoT Hub (which is called `$upstream`). A second route, **SimulatedTemperatureSensorToIoTHub**, was created automatically when you added the module from Azure Marketplace. This route sends all messages from the simulated temperature module to IoT Hub. You can delete the default route because it's redundant in this case.
215
-
216
-

208
+
:::image type="content" source="./media/quickstart/route-next-review-create.png" alt-text="Screenshot that shows the location of the Next: Review + create button.":::
217
209
218
-
1. Review the JSON file, and then select **Create**. The JSON file defines all of the modules that you deploy to your IoT Edge device. You'll see the **SimulatedTemperatureSensor** module and the two runtime modules, **edgeAgent** and **edgeHub**.
210
+
1. Review the JSON file in the **Review + create** tab. The JSON file defines all of the modules that you deploy to your IoT Edge device. You'll see the **SimulatedTemperatureSensor** module and the two runtime modules, **edgeAgent** and **edgeHub**.
219
211
220
212
>[!Note]
221
213
>When you submit a new deployment to an IoT Edge device, nothing is pushed to your device. Instead, the device queries IoT Hub regularly for any new instructions. If the device finds an updated deployment manifest, it uses the information about the new deployment to pull the module images from the cloud then starts running the modules locally. This process can take a few minutes.
222
214
215
+
1. Select **Create** to deploy.
216
+
223
217
1. After you create the module deployment details, the wizard returns you to the device details page. View the deployment status on the **Modules** tab.
224
218
225
-
You should see three modules: **$edgeAgent**, **$edgeHub**, and **SimulatedTemperatureSensor**. If one or more of the modules has **YES** under **SPECIFIED IN DEPLOYMENT** but not under **REPORTED BY DEVICE**, your IoT Edge device is still starting them. Wait a few minutes, and then refresh the page.
219
+
You should see three modules: **$edgeAgent**, **$edgeHub**, and **SimulatedTemperatureSensor**. If one or more of the modules has **Yes** under **Specified in Deployment** but not under **Reported by Device**, your IoT Edge device is still starting them. Wait a few minutes, and then refresh the page.
226
220
227
-

221
+
:::image type="content" source="./media/quickstart/view-deployed-modules.png" alt-text="Screenshot that shows Simulated Temperature Sensor in the list of deployed modules." lightbox="./media/quickstart/view-deployed-modules.png":::
228
222
229
223
## View the generated data
230
224
@@ -247,7 +241,7 @@ The module that you pushed generates sample environment data that you can use fo
247
241
sudo iotedge list
248
242
```
249
243
250
-

244
+
:::image type="content" source="./media/quickstart/iotedge-list-screen.png" alt-text="Verify your temperature sensor, agent, and hub are running." lightbox="./media/quickstart/iotedge-list-screen.png":::
251
245
252
246
1. View the messages being sent from the temperature sensor module to the cloud using the following Linux command:
253
247
@@ -258,7 +252,7 @@ The module that you pushed generates sample environment data that you can use fo
258
252
>[!IMPORTANT]
259
253
>IoT Edge commands are case-sensitive when they refer to module names.
260
254
261
-

255
+
:::image type="content" source="./media/quickstart/temperature-sensor-screen.png" alt-text="Screenshot of the output logs of the Simulated Temperature Sensor module." lightbox="./media/quickstart/temperature-sensor-screen.png":::
262
256
263
257
You can also use the [Azure IoT Hub extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit) to watch messages arrive at your IoT hub.
0 commit comments