Skip to content

Commit ca874c2

Browse files
Merge pull request #209870 from jlian/patch-81
SEO improvements and no more force deleting devices
2 parents f56856d + c0587c7 commit ca874c2

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

articles/iot-edge/tutorial-nested-iot-edge.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Tutorial - Create a hierarchy of IoT Edge devices - Azure IoT Edge
3-
description: This tutorial shows you how to create a hierarchical structure of IoT Edge devices using gateways.
2+
title: Tutorial - Create a hierarchy of Azure IoT Edge devices (nested edge)
3+
description: This tutorial shows you how to create a hierarchical structure of IoT Edge devices with secure communication.
44
author: PatAltimore
55

66
ms.author: patricka
7-
ms.date: 05/04/2022
7+
ms.date: 03/31/2022
88
ms.topic: tutorial
99
ms.service: iot-edge
1010
services: iot-edge
@@ -15,7 +15,7 @@ monikerRange: ">=iotedge-2020-11"
1515

1616
[!INCLUDE [iot-edge-version-202011](../../includes/iot-edge-version-202011.md)]
1717

18-
Deploy Azure IoT Edge nodes across networks organized in hierarchical layers. Each layer in a hierarchy is a gateway device that handles messages and requests from devices in the layer beneath it.
18+
Deploy Azure IoT Edge nodes across networks organized in hierarchical layers. Each layer in a hierarchy is a gateway device that handles messages and requests from devices in the layer beneath it. This setup is also known as "nested edge".
1919

2020
You can structure a hierarchy of devices so that only the top layer has connectivity to the cloud, and the lower layers can only communicate with adjacent north and south layers. This network layering is the foundation of most industrial networks, which follow the [ISA-95 standard](https://en.wikipedia.org/wiki/ANSI/ISA-95).
2121

@@ -91,8 +91,6 @@ To create a hierarchy of IoT Edge devices, you will need:
9191

9292
## Configure your IoT Edge device hierarchy
9393

94-
### Create a hierarchy of IoT Edge devices
95-
9694
IoT Edge devices make up the layers of your hierarchy. This tutorial will create a hierarchy of two IoT Edge devices: the **top layer device** and its child, the **lower layer device**. You can create additional child devices as needed.
9795

9896
To create and configure your hierarchy of IoT Edge devices, you'll use the `iotedge-config` tool. This tool simplifies the configuration of the hierarchy by automating and condensing several steps into two:
@@ -167,15 +165,27 @@ To use the `iotedge-config` tool to create and configure your hierarchy, follow
167165

168166
```bash
169167
cd ~/nestedIotEdgeTutorial/iotedge_config_cli_release
170-
./iotedge_config --config ~/nestedIotEdgeTutorial/iotedge_config_cli_release/templates/tutorial/iotedge_config.yaml --output ~/nestedIotEdgeTutorial/iotedge_config_cli_release/outputs -f
168+
./iotedge_config --config ./templates/tutorial/iotedge_config.yaml --output ./outputs
171169
```
172170

173-
With the `--output` flag, the tool creates the device certificates, certificate bundles, and a log file in a directory of your choice. With the `-f` flag set, the tool will automatically look for existing IoT Edge devices in your IoT Hub and remove them, to avoid errors and keep your hub clean.
171+
With the `--output` flag, the tool creates the device certificates, certificate bundles, and a log file in the outputs directory setup earlier.
174172

175173
The configuration tool creates your IoT Edge devices and sets up the parent-child relationships between them. Optionally, it creates certificates for your devices to use. If paths to deployment JSONs are provided, the tool will automatically create these deployments to your devices, but this is not required. Finally, the tool will generate the configuration bundles for your devices and place them in the output directory. For a thorough look at the steps taken by the configuration tool, see the log file in the output directory.
176174

177-
![The script will display a topology of your hierarchy upon execution](./media/tutorial-nested-iot-edge/successful-setup-tool-run.png)
178-
175+
```output
176+
user@Azure:~/nestedIotEdgeTutorial$ sudo ./iotedge_config --config ./templates/tutorial/iotedge_config.yaml --output ./outputs
177+
Reading "templates/tutorial/iotedge_config.yaml"
178+
Writing logs to "outputs/log_2022-08-31_20-39-42.txt"
179+
top-layer
180+
└──lower-layer
181+
182+
No Root CA specified. Generating self-signed root at "./outputs/certificates/iotedge_config_cli_root.pem".
183+
Creating certificates for 2 devices
184+
Creating 2 devices in hub contoso-iothub
185+
Creating configuration files based on "./templates/tutorial/device_config.toml" for 2 devices.
186+
Done! Output located at "/home/user/nestedIotEdgeTutorial/outputs". See README.md in output for install instructions.
187+
```
188+
179189
Double-check that the topology output from the script looks correct. Once you are satisfied your hierarchy is correctly structured, you are ready to proceed.
180190

181191
### Configure the IoT Edge runtime

0 commit comments

Comments
 (0)