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-dps/how-to-send-additional-data.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,32 @@ This feature is available in C, C#, JAVA and Node.js client SDKs. To learn more
59
59
60
60
[IoT Plug and Play (PnP)](../iot-develop/overview-iot-plug-and-play.md) devices use the payload to send their model ID when they register with DPS. You can find examples of this usage in the PnP samples in the SDK or sample repositories. For example, [C# PnP thermostat](https://github.com/Azure-Samples/azure-iot-samples-csharp/blob/main/iot-hub/Samples/device/PnpDeviceSamples/Thermostat/Program.cs) or [Node.js PnP temperature controller](https://github.com/Azure/azure-iot-sdk-node/blob/main/device/samples/javascript/pnp_temperature_controller.js).
61
61
62
+
## IoT Edge support
63
+
64
+
Starting with version 1.4, IoT Edge supports sending a data payload contained in a JSON file. The payload file is read and sent to DPS when the device is (re)registered which typically happens when you run `iotedge config apply` for the first time. You can also force it to be re-read and registered by using the CLI's reprovision command `iotedge system reprovision`.
65
+
66
+
Below is an example snippet from `/etc/aziot/config.toml` where the `payload` property is set to the path of a local JSON file.
# Uncomment to send a custom payload during DPS registration
75
+
payload = { uri = "file:///home/aziot/payload.json" }
76
+
77
+
```
78
+
79
+
The payload file (in this case `/home/aziot/payload/json`) can contain any valid JSON such as:
80
+
81
+
82
+
```json
83
+
{
84
+
"modelId": "dtmi:com:example:edgedevice;1"
85
+
}
86
+
```
87
+
62
88
## Next steps
63
89
64
-
* To learn how to provision devices using a custom allocation policy, see [How to use custom allocation policies](./how-to-use-custom-allocation-policies.md)
90
+
* To learn how to provision devices using a custom allocation policy, see [How to use custom allocation policies](./how-to-use-custom-allocation-policies.md)
Copy file name to clipboardExpand all lines: articles/iot-edge/configure-connect-verify-gpu.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
@@ -41,7 +41,7 @@ To create a GPU-optimized virtual machine (VM), choosing the right size is impor
41
41
42
42
Let's create an IoT Edge VM with the [Azure Resource Manager (ARM)](/azure/azure-resource-manager/management/overview) template in GitHub, then configure it to be GPU-optimized.
43
43
44
-
1. Go to the IoT Edge VM deployment template in GitHub: [Azure/iotedge-vm-deploy](https://github.com/Azure/iotedge-vm-deploy/tree/1.3).
44
+
1. Go to the IoT Edge VM deployment template in GitHub: [Azure/iotedge-vm-deploy](https://github.com/Azure/iotedge-vm-deploy/tree/1.4).
45
45
46
46
1. Select the **Deploy to Azure** button, which initiates the creation of a custom VM for you in the Azure portal.
IoT Edge devices send HTTPS requests to communicate with IoT Hub. If your device is connected to a network that uses a proxy server, you need to configure the IoT Edge runtime to communicate through the server. Proxy servers can also affect individual IoT Edge modules if they make HTTP or HTTPS requests that aren't routed through the IoT Edge hub.
This article provides instructions for establishing a trusted connection between downstream devices and IoT Edge transparent gateways. In a transparent gateway scenario, one or more devices can pass their messages through a single gateway device that maintains the connection to IoT Hub.
01. Verify your IoT Edge device uses the correct version of the IoT Edge agent when it starts. Find the **Default Edge Agent** section and set the image value for IoT Edge to version 1.3. For example:
230
+
01. Verify your IoT Edge device uses the correct version of the IoT Edge agent when it starts. Find the **Default Edge Agent** section and set the image value for IoT Edge to version 1.4. For example:
231
231
232
232
```toml
233
233
[agent.config]
234
-
image: "mcr.microsoft.com/azureiotedge-agent:1.3"
234
+
image: "mcr.microsoft.com/azureiotedge-agent:1.4"
235
235
```
236
236
237
237
01. The beginning of your parent configuration file should look similar to the following example.
@@ -281,8 +281,8 @@ To verify the *hostname*, you need to inspect the environment variables of the *
281
281
```output
282
282
NAME STATUS DESCRIPTION CONFIG
283
283
SimulatedTemperatureSensor running Up 5 seconds mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0
284
-
edgeAgent running Up 17 seconds mcr.microsoft.com/azureiotedge-agent:1.3
285
-
edgeHub running Up 6 seconds mcr.microsoft.com/azureiotedge-hub:1.3
284
+
edgeAgent running Up 17 seconds mcr.microsoft.com/azureiotedge-agent:1.4
285
+
edgeHub running Up 6 seconds mcr.microsoft.com/azureiotedge-hub:1.4
286
286
```
287
287
01. Inspect the *edgeHub* container.
288
288
@@ -385,11 +385,11 @@ You should already have IoT Edge installed on your device. If not, follow the st
01. Verify your IoT Edge device uses the correct version of the IoT Edge agent when it starts. Find the **Default Edge Agent** section and set the image value for IoT Edge to version 1.3. For example:
388
+
01. Verify your IoT Edge device uses the correct version of the IoT Edge agent when it starts. Find the **Default Edge Agent** section and set the image value for IoT Edge to version 1.4. For example:
389
389
390
390
```toml
391
391
[agent.config]
392
-
image: "mcr.microsoft.com/azureiotedge-agent:1.3"
392
+
image: "mcr.microsoft.com/azureiotedge-agent:1.4"
393
393
```
394
394
395
395
01. The beginning of your child configuration file should look similar to the following example.
@@ -654,14 +654,14 @@ The API proxy module was designed to be customized to handle most common gateway
This article provides an overview of the options available to you for installing and provisioning IoT Edge on your devices.
17
17
@@ -43,7 +43,7 @@ If you want more information about how to choose the right option for you, conti
43
43
:::moniker range=">=iotedge-2020-11"
44
44
45
45
>[!NOTE]
46
-
>The following table reflects the supported scenarios for IoT Edge version 1.3. To see content about Windows containers, switch to the [IoT Edge 1.1](?view=iotedge-2018-06&preserve-view=true) version of this article.
46
+
>The following table reflects the supported scenarios for IoT Edge version 1.4. To see content about Windows containers, switch to the [IoT Edge 1.1](?view=iotedge-2018-06&preserve-view=true) version of this article.
47
47
48
48
|| Linux containers on Linux hosts |
49
49
|--| ----- |
@@ -108,7 +108,7 @@ For Windows devices, the IoT Edge runtime is installed directly on the host devi
108
108
109
109
<!-- iotedge-2020-11 -->
110
110
:::moniker range=">=iotedge-2020-11"
111
-
IoT Edge version 1.3 doesn't support Windows containers. Windows containers are not supported beyond version 1.1. To learn more about IoT Edge with Windows containers, see the [IoT Edge 1.1](?view=iotedge-2018-06&preserve-view=true) version of this article.
111
+
IoT Edge version 1.4 doesn't support Windows containers. Windows containers are not supported beyond version 1.1. To learn more about IoT Edge with Windows containers, see the [IoT Edge 1.1](?view=iotedge-2018-06&preserve-view=true) version of this article.
IoT Edge devices require certificates for secure communication between the runtime, the modules, and any downstream devices.
18
18
If you don't have a certificate authority to create the required certificates, you can use demo certificates to try out IoT Edge features in your test environment.
This article provides detailed instructions for configuring an IoT Edge device to function as a transparent gateway for other devices to communicate with IoT Hub. This article uses the term *IoT Edge gateway* to refer to an IoT Edge device configured as a transparent gateway. For more information, see [How an IoT Edge device can be used as a gateway](./iot-edge-as-gateway.md).
19
19
@@ -155,7 +155,7 @@ Now, you need to copy the certificates to the Azure IoT Edge for Linux on Window
1. Invoke the following commands on the EFLOW VM to grant iotedge permissions to the certificate files since `Copy-EflowVMFile` copies files with root only access permissions.
158
+
1. Invoke the following commands on the EFLOW VM to grant *iotedge* permissions to the certificate files since `Copy-EflowVMFile` copies files with root only access permissions.
The Azure IoT Edge runtime is what turns a device into an IoT Edge device. The runtime can be deployed on devices as small as a Raspberry Pi or as large as an industrial server. Once a device is configured with the IoT Edge runtime, you can start deploying business logic to it from the cloud.
20
20
@@ -26,9 +26,9 @@ This article lists the steps to deploy an Ubuntu 18.04 LTS virtual machine with
26
26
On first boot, the virtual machine [installs the latest version of the Azure IoT Edge runtime via cloud-init](https://github.com/Azure/iotedge-vm-deploy/blob/1.1/cloud-init.txt). It also sets a supplied connection string before the runtime starts, allowing you to easily configure and connect the IoT Edge device without the need to start an SSH or remote desktop session.
27
27
:::moniker-end
28
28
:::moniker range=">=iotedge-2020-11"
29
-
This article lists the steps to deploy an Ubuntu 20.04 LTS virtual machine with the Azure IoT Edge runtime installed and configured using a pre-supplied device connection string. The deployment is accomplished using a [cloud-init](../virtual-machines/linux/using-cloud-init.md) based [Azure Resource Manager template](../azure-resource-manager/templates/overview.md) maintained in the [iotedge-vm-deploy](https://github.com/Azure/iotedge-vm-deploy/tree/1.3) project repository.
29
+
This article lists the steps to deploy an Ubuntu 20.04 LTS virtual machine with the Azure IoT Edge runtime installed and configured using a pre-supplied device connection string. The deployment is accomplished using a [cloud-init](../virtual-machines/linux/using-cloud-init.md) based [Azure Resource Manager template](../azure-resource-manager/templates/overview.md) maintained in the [iotedge-vm-deploy](https://github.com/Azure/iotedge-vm-deploy/tree/1.4) project repository.
30
30
31
-
On first boot, the virtual machine [installs the latest version of the Azure IoT Edge runtime via cloud-init](https://github.com/Azure/iotedge-vm-deploy/blob/1.3/cloud-init.txt). It also sets a supplied connection string before the runtime starts, allowing you to easily configure and connect the IoT Edge device without the need to start an SSH or remote desktop session.
31
+
On first boot, the virtual machine [installs the latest version of the Azure IoT Edge runtime via cloud-init](https://github.com/Azure/iotedge-vm-deploy/blob/1.4/cloud-init.txt). It also sets a supplied connection string before the runtime starts, allowing you to easily configure and connect the IoT Edge device without the need to start an SSH or remote desktop session.
32
32
:::moniker-end
33
33
34
34
## Deploy using Deploy to Azure Button
@@ -40,7 +40,7 @@ The [Deploy to Azure Button](../azure-resource-manager/templates/deploy-to-azure
40
40
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fiotedge-vm-deploy%2F1.1%2FedgeDeploy.json)
41
41
:::moniker-end
42
42
:::moniker range=">=iotedge-2020-11"
43
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fiotedge-vm-deploy%2F1.3%2FedgeDeploy.json)
43
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fiotedge-vm-deploy%2F1.4%2FedgeDeploy.json)
44
44
:::moniker-end
45
45
46
46
1. On the newly launched window, fill in the available form fields:
@@ -152,7 +152,7 @@ The [Deploy to Azure Button](../azure-resource-manager/templates/deploy-to-azure
All IoT Edge devices use certificates to create secure connections between the runtime and any modules running on the device. IoT Edge devices functioning as gateways use these same certificates to connect to their downstream devices, too.
0 commit comments