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-central/core/howto-migrate-to-iot-hub.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Migrate devices from Azure IoT Central to Azure IoT Hub
3
-
titleSuffix: IoT Central
3
+
titleSuffix: Azure IoT Central
4
4
description: Describes how to use the migration tool to migrate devices that currently connect to an Azure IoT Central application to an Azure IoT hub.
Copy file name to clipboardExpand all lines: articles/iot-central/core/howto-transform-data.md
+37-23Lines changed: 37 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
---
2
-
title: Transform data for Azure IoT Central | Microsoft Docs
3
-
description: IoT devices send data in various formats that you may need to transform. This article describes how to transform data both on the way into IoT Central and on the way out. The scenarios described use IoT Edge and Azure Functions.
2
+
title: Transform data for an IoT Central application
3
+
titleSuffix: Azure IoT Central
4
+
description: IoT devices send data in various formats that you may need to transform. This article describes how to transform data both on the way in and out of IoT Central.
4
5
author: dominicbetts
5
6
ms.author: dobett
6
-
ms.date: 10/11/2022
7
+
ms.date: 01/10/2023
7
8
ms.topic: how-to
8
9
ms.service: iot-central
9
10
services: iot-central
@@ -152,13 +153,13 @@ In this example, the downstream device doesn't need a device template. The downs
152
153
153
154
To create a device template for the IoT Edge gateway device:
154
155
155
-
1. Save a copy of the deployment manifest to your local development machine: [moduledeployment.json](https://raw.githubusercontent.com/iot-for-all/iot-central-transform-with-iot-edge/main/edgemodule/moduledeployment.json).
156
+
1. Save a copy of the deployment manifest to your local development machine: [moduledeployment.json](https://raw.githubusercontent.com/Azure-Samples/iot-central-docs-samples/main/iotedge/moduledeployment.json).
156
157
157
158
1. Open your local copy of the *moduledeployment.json* manifest file in a text editor.
158
159
159
-
1. Find the `registryCredentials` section and replace the placeholders with the values you made a note of when you created the Azure container registry. The `address` value looks like `<username>.azurecr.io`.
160
+
1. Find the `registryCredentials` section and replace the placeholders with the values you made a note of when you created the Azure container registry. The `address` value looks like `{your username}.azurecr.io`.
160
161
161
-
1. Find the `settings` section for the `transformmodule`. Replace `<acr or docker repo>` with the same `address` value you used in the previous step. Save the changes.
162
+
1. Find the `settings` section for the `transformmodule`. Replace `{your username}` with the same value you used in the previous step. Save the changes.
162
163
163
164
1. In your IoT Central application, navigate to the **Edge manifests** page.
164
165
@@ -170,7 +171,7 @@ To create a device template for the IoT Edge gateway device:
170
171
171
172
1. Select **+ New**, select **Azure IoT Edge**, and then select **Next: Customize**.
172
173
173
-
1. Enter *IoT Edge gateway device* as the device template name. Don't select **This is a gateway device**.
174
+
1. Enter *IoT Edge gateway device* as the device template name. Select **This is a gateway device**.
174
175
175
176
1. Select **Next: Review**, then select **Create**.
176
177
@@ -221,13 +222,19 @@ The deployment manifest doesn't specify the telemetry the module sends. To add t
221
222
222
223
Save your changes.
223
224
225
+
1. In the model, select **Relationships**. Don't select **Relationships** in the **transformmodule** module.
226
+
227
+
1. Select **Add relationship**.
228
+
229
+
1. Enter *Downstream Sensor* as the display name, *sensor* as the name, and select **Any** as the target. Select **Save**.
230
+
224
231
1. Select **Publish** to publish the device template.
225
232
226
233
To register a gateway device in IoT Central:
227
234
228
235
1. In your IoT Central application, navigate to the **Devices** page.
229
236
230
-
1. Select **IoT Edge gateway device** and select **Create a device**. Enter *IoT Edge gateway device* as the device name, enter *gateway-01* as the device ID, make sure **IoT Edge gateway device** is selected as the device template and **No** is selected as **Simulate this device?**. Select **Transformer** as the edge manifest. Select **Create**.
237
+
1. Select **IoT Edge gateway device** and select **+ New**. Enter *IoT Edge gateway device* as the device name, enter *gateway-01* as the device ID, make sure **IoT Edge gateway device** is selected as the device template and **No** is selected as **Simulate this device?**. Select **Transformer** as the edge manifest. Select **Create**.
231
238
232
239
1. In the list of devices, click on the **IoT Edge gateway device**, and then select **Connect**.
233
240
@@ -239,13 +246,17 @@ To register a downstream device in IoT Central:
239
246
240
247
1. Don't select a device template. Select **+ New**. Enter *Downstream 01* as the device name, enter *downstream-01* as the device ID, make sure that the device template is **Unassigned** and **No** is selected as **Simulate this device?**. Select **Create**.
241
248
242
-
1. In the list of devices, click on the **Downstream 01** device, and then select **Connect**.
249
+
1. In the list of devices, click on the **Downstream 01** device, then select **Manage device > Attach to gateway**.
250
+
251
+
1. In the **Attach to a gateway** dialog, select the **IoT Edge gateway device** device template, and the **IoT Edge gateway device** device instance. Select **Attach**.
252
+
253
+
1. On the **Downstream 01** device, select **Connect**.
243
254
244
255
1. Make a note of the **ID scope**, **Device ID**, and **Primary key** values for the **Downstream 01** device. You use them later.
245
256
246
257
### Deploy the gateway and downstream devices
247
258
248
-
For convenience, this article uses Azure virtual machines to run the gateway and downstream devices. To create the two Azure virtual machines, select the **Deploy to Azure** button below and use the information in the following table to complete the **Custom deployment** form:
259
+
For convenience, this article uses Azure virtual machines to run the gateway and downstream devices. To create the two Azure virtual machines, select the **Deploy to Azure** button shown after the following table. Use the information in the table to complete the **Custom deployment** form:
249
260
250
261
| Field | Value |
251
262
| ----- | ----- |
@@ -258,7 +269,7 @@ For convenience, this article uses Azure virtual machines to run the gateway and
258
269
| Authentication Type | Password |
259
270
| Admin Password Or Key | Your choice of password for the **AzureUser** account on both virtual machines. |
260
271
261
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure-Samples%2Fiot-central-docs-samples%2Fmain%2Ftransparent-gateway-1-1%2FDeployGatewayVMs.json)
272
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure-Samples%2Fiot-central-docs-samples%2Fmain%2Ftransparent-gateway-1-4%2FDeployGatewayVMs.json)
262
273
263
274
Select **Review + Create**, and then **Create**. It takes a couple of minutes to create the virtual machines in the **ingress-scenario** resource group.
264
275
@@ -301,24 +312,27 @@ To generate the demo certificates and install them on your gateway device:
301
312
302
313
To learn more about these demo certificates, see [Create demo certificates to test IoT Edge device features](../../iot-edge/how-to-create-test-certificates.md).
303
314
304
-
1. Open the *config.yaml* file in a text editor. For example:
315
+
1. Open the *config.toml* file in a text editor. For example:
305
316
306
317
```bash
307
-
sudo nano /etc/iotedge/config.yaml
318
+
sudo nano /etc/aziot/config.toml
308
319
```
309
320
310
-
1. Locate the `Certificate settings` settings. Uncomment and modify the certificate settings as follows:
321
+
1. Uncomment and modify the certificate settings as follows:
The example shown above assumes you're signed in as **AzureUser** and created a device CA certificated called "mycacert".
333
+
The previous example assumes you're signed in as **AzureUser** and created a device CA certificated called "mycacert".
320
334
321
-
1. Save the changes and run the following command to verify that the *config.yaml* file is correct:
335
+
1. Save the changes and run the following command to verify that the *config.toml* file is correct:
322
336
323
337
```bash
324
338
sudo iotedge check
@@ -327,12 +341,12 @@ To generate the demo certificates and install them on your gateway device:
327
341
1. Restart the IoT Edge runtime:
328
342
329
343
```bash
330
-
sudo systemctl restart iotedge
344
+
sudo iotedge config apply
331
345
```
332
346
333
347
If the IoT Edge runtime starts successfully after your changes, the status of the **$edgeAgent** and **$edgeHub** modules changes to **Running**. You can see these status values on the **Modules** page for your gateway device in IoT Central.
334
348
335
-
If the runtime doesn't start, check the changes you made in *config.yaml* and see [Troubleshoot your IoT Edge device](../../iot-edge/troubleshoot.md).
349
+
If the runtime doesn't start, check the changes you made in *config.toml* and see [Troubleshoot your IoT Edge device](../../iot-edge/troubleshoot.md).
336
350
337
351
### Connect downstream device to IoT Edge device
338
352
@@ -482,7 +496,7 @@ Before you set up this scenario, you need to get some connection settings from y
482
496
483
497
### Set up a compute engine
484
498
485
-
This scenario uses the same Azure Functions deployment as the IoT Central device bridge. To deploy the device bridge, select the **Deploy to Azure** button below and use the information in the following table to complete the **Custom deployment** form:
499
+
This scenario uses the same Azure Functions deployment as the IoT Central device bridge. To deploy the device bridge, select the **Deploy to Azure** button shown after the following table. Use the information in the table to complete the **Custom deployment** form:
0 commit comments