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/tutorial-machine-learning-edge-05-configure-edge-device.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ services: iot-edge
14
14
> [!NOTE]
15
15
> This article is part of a series for a tutorial about using Azure Machine Learning on IoT Edge. If you have arrived at this article directly, we encourage you to begin with the [first article](tutorial-machine-learning-edge-01-intro.md) in the series for the best results.
16
16
17
-
In this article, we configure an Azure VM running Linux to be an IoT Edge device and act as a transparent gateway. A transparent gateway configuration allows devices to connect to Azure IoT Hub through the gateway without knowing that the gateway exists. At the same time, a user interacting with the devices in Azure IoT Hub is unaware of the intermediate gateway device. Ultimately, we use the transparent gateway to add edge analytics to our system by adding IoT Edge modules to the transparent gateway.
17
+
In this article, we configure an Azure virtual machine running Linux to be an IoT Edge device that acts as a transparent gateway. A transparent gateway configuration allows devices to connect to Azure IoT Hub through the gateway without knowing that the gateway exists. At the same time, a user interacting with the devices in Azure IoT Hub is unaware of the intermediate gateway device. Ultimately, we will add edge analytics to our system by adding IoT Edge modules to the transparent gateway.
18
18
19
19
The steps in this article are typically performed by a cloud developer.
20
20
21
-
## Generate certificates
21
+
## Create certificates
22
22
23
23
For a device to function as a gateway it needs to be able to securely connect to downstream devices. Azure IoT Edge allows you to use a public key infrastructure (PKI) to set up secure connections between devices. In this case, we’re allowing a downstream IoT device to connect to an IoT Edge device acting as a transparent gateway. To maintain reasonable security, the downstream device should confirm the identity of the IoT Edge device. For more information about how IoT Edge devices use certificates, see [Azure IoT Edge certificate usage details](iot-edge-certs.md).
24
24
@@ -36,7 +36,7 @@ In this section, we create the self-signed certificates using a Docker image tha
36
36
37
37
6. In the Explorer pane, right-click on **dockerfile** and choose **Build Image**.
38
38
39
-
7. In the dialog, accept the default value for the image name and tag: **createcertificates:latest**.
39
+
7. In the dialog, accept the default value for the image name and tag: **createcertificates:latest**.
40
40
41
41

42
42
@@ -87,7 +87,7 @@ To store our certificates securely and to make them accessible from multiple dev
87
87
88
88
## Create IoT Edge device
89
89
90
-
To connect an Azure IoT Edge device to an IoT hub, we first create an identity for the device in the hub. We take the connection string from the device identity in the cloud and use it to configure the runtime on our IoT Edge device. Once a configured device connects to the hub, we are able to deploy modules and send messages. We can also change the configuration of the physical IoT Edge device by changing the configuration of the corresponding device identity in IoT hub.
90
+
To connect an Azure IoT Edge device to an IoT hub, we first create an identity for the device in the hub. We take the connection string from the device identity in the cloud and use it to configure the runtime on our IoT Edge device. Once a configured device connects to the hub, we are able to deploy modules and send messages. We can also change the configuration of the physical IoT Edge device by changing its corresponding device identity in IoT hub.
91
91
92
92
For this tutorial, we create the new device identity using Visual Studio Code. You can also complete these steps using the [Azure portal](how-to-register-device.md#register-in-the-azure-portal), or [Azure CLI](how-to-register-device.md#register-with-the-azure-cli).
93
93
@@ -97,7 +97,7 @@ For this tutorial, we create the new device identity using Visual Studio Code. Y
97
97
98
98
3. Click on the ellipsis and select **Create IoT Edge Device**.
99
99
100
-
4. Give the device a name. For convenience, we use the name **aaTurbofanEdgeDevice** so it sorts appears at the top of listed devices.
100
+
4. Give the device a name. For convenience, we use the name **aaTurbofanEdgeDevice** so it sorts to the top of listed devices.
101
101
102
102
5. The new device will appear in the list of devices.
103
103
@@ -109,15 +109,15 @@ We use the [Azure IoT Edge on Ubuntu](https://azuremarketplace.microsoft.com/mar
109
109
110
110
### Enable programmatic deployment
111
111
112
-
To use the image from the marketplace in a scripted deployment, we need to enable programmatic deployment for the image.
112
+
To use the image from the Marketplace in a scripted deployment, we need to enable programmatic deployment for the image.
113
113
114
114
1. Sign in to the Azure portal.
115
115
116
116
1. Select **All services**.
117
117
118
118
1. In the search bar, enter and select **Marketplace**.
119
119
120
-
1. In the marketplace search bar, enter and select **Azure IoT Edge on Ubuntu**.
120
+
1. In the Marketplace search bar, enter and select **Azure IoT Edge on Ubuntu**.
121
121
122
122
1. Select the **Get started** hyperlink to deploy programmatically.
123
123
@@ -184,7 +184,9 @@ The next several sections configure the Azure virtual machine we created. The fi
184
184
185
185
## Download Key Vault certificates
186
186
187
-
Earlier in this article, we uploaded certificates to Key Vault to make them available for our IoT Edge device and our leaf device, which is a downstream device that uses the IoT Edge device as a gateway to communicate with IoT Hub. We will deal with the leaf device later in the tutorial. In this section, download the certificates to the IoT Edge device.
187
+
Earlier in this article, we uploaded certificates to Key Vault to make them available for our IoT Edge device and our leaf device. The leaf device is a downstream device that uses the IoT Edge device as a gateway to communicate with IoT Hub.
188
+
189
+
We will deal with the leaf device later in the tutorial. In this section, download the certificates to the IoT Edge device.
188
190
189
191
1. From the SSH session on the Linux virtual machine, sign in to Azure with the Azure CLI.
190
192
@@ -219,7 +221,7 @@ Earlier in this article, we uploaded certificates to Key Vault to make them avai
219
221
220
222
## Update the IoT Edge device configuration
221
223
222
-
The IoT Edge runtime uses the file /etc/iotedge/config.yaml to persist its configuration. We need to update three pieces of information in this file:
224
+
The IoT Edge runtime uses the file `/etc/iotedge/config.yaml` to persist its configuration. We need to update three pieces of information in this file:
223
225
224
226
* **Device connection string**: the connection string from this device's identity in IoT Hub
225
227
* **Certificates:** the certificates to use for connections made with downstream devices
@@ -290,7 +292,7 @@ Next we will update the certificates and hostname by directly editing the config
290
292
291
293
We just completed configuring an Azure VM as Azure IoT Edge Transparent Gateway. We started by generating test certificates that we uploaded to Azure Key Vault. Next, we used a script and Resource Manager template to deploy the VM with the “Ubuntu Server 16.04 LTS + Azure IoT Edge runtime” image from the Azure Marketplace. With the VM up and running we connected via SSH, we signed into Azure and downloaded certificates from Key Vault. We made several updates to the configuration of the IoT Edge Runtime by updating the config.yaml file.
292
294
293
-
For more information about using IoT Edge as a gateway, see [How an IoT Edge device can be used as a gateway](iot-edge-as-gateway.md). For more information on how to configure an IoT Edge device as a transparent gateway, see [Configure an IoT Edge device to act as a transparent gateway](how-to-create-transparent-gateway.md).
295
+
For more information see [How an IoT Edge device can be used as a gateway](iot-edge-as-gateway.md) and [Configure an IoT Edge device to act as a transparent gateway](how-to-create-transparent-gateway.md).
294
296
295
297
Continue to the next article to build IoT Edge modules.
0 commit comments