|
| 1 | +--- |
| 2 | +title: Limits and restrictions - Azure IoT Edge | Microsoft Docs |
| 3 | +description: Description of the limits and restrictions when using IoT Edge. |
| 4 | +author: raisalitch |
| 5 | +ms.author: ralitchf |
| 6 | +ms.date: 01/28/2022 |
| 7 | +ms.topic: conceptual |
| 8 | +ms.service: iot-edge |
| 9 | +services: iot-edge |
| 10 | +--- |
| 11 | + |
| 12 | +# Understand Azure IoT Edge limits and restrictions |
| 13 | + |
| 14 | +[!INCLUDE [iot-edge-version-all-supported](../../includes/iot-edge-version-all-supported.md)] |
| 15 | + |
| 16 | +This article explains the limits and restrictions when using IoT Edge. |
| 17 | + |
| 18 | +## Limits |
| 19 | +### Number of children in gateway hierarchy |
| 20 | +IoT Edge gateway hierarchies have a default limit of up to 100 connected child devices. This limit can be changed by setting the **MaxConnectedClients** environment variable in the parent device's edgeHub module. |
| 21 | + |
| 22 | +For more information, see [Create a gateway hierarchy](how-to-connect-downstream-iot-edge-device.md#create-a-gateway-hierarchy). |
| 23 | + |
| 24 | +### Size of desired properties |
| 25 | +IoT Hub enforces the following restrictions: |
| 26 | +* An 8-kb size limit on the value of tags. |
| 27 | +* A 32-kb size limit on both the value of `properties/desired` and `properties/reported`. |
| 28 | + |
| 29 | +For more information, see [Module twin size](../iot-hub/iot-hub-devguide-module-twins.md#module-twin-size). |
| 30 | + |
| 31 | +### Number of nested hierarchy layers |
| 32 | +An IoT Edge device has a limit of five layers of IoT Edge devices linked as children below it. |
| 33 | + |
| 34 | +For more information, see [Parent and child relationships](iot-edge-as-gateway.md#cloud-identities). |
| 35 | + |
| 36 | +### Number of modules in a deployment |
| 37 | +IoT Hub has the following restrictions for IoT Edge automatic deployments: |
| 38 | +* 50 modules per deployment |
| 39 | + * This limit is superseded by the IoT Hub 32-kb module twin size limit. For more information, see [Be mindful of twin size limits when using custom modules](production-checklist.md#be-mindful-of-twin-size-limits-when-using-custom-modules). |
| 40 | +* 100 deployments (including layered deployments per paid SKU hub) |
| 41 | +* 10 deployments per free SKU hub |
| 42 | + |
| 43 | +## Restrictions |
| 44 | +### Certificates |
| 45 | +IoT Edge certificates have the following restrictions: |
| 46 | +* The common name (CN) can't be the same as the "hostname" that will be used in the configuration file on the IoT Edge device. |
| 47 | +* The name used by clients to connect to IoT Edge can't be the same as the common name used in the edge CA certificate. |
| 48 | + |
| 49 | +For more information, see [Certificates for device security](iot-edge-certs.md#production-implications). |
| 50 | + |
| 51 | +### TPM attestation |
| 52 | +When using TPM attestation with the device provisioning service, you need to use TPM 2.0. |
| 53 | + |
| 54 | +For more information, see [TPM attestation device requirements](how-to-provision-devices-at-scale-linux-tpm.md#device-requirements). |
| 55 | + |
| 56 | +### Routing syntax |
| 57 | +IoT Edge and IoT Hub routing syntax is almost identical. |
| 58 | +Supported query syntax: |
| 59 | +* [Message routing query based on message properties](../iot-hub/iot-hub-devguide-routing-query-syntax.md#message-routing-query-based-on-message-properties) |
| 60 | +* [Message routing query based on message body](../iot-hub/iot-hub-devguide-routing-query-syntax.md#message-routing-query-based-on-message-body) |
| 61 | + |
| 62 | +Not supported query syntax: |
| 63 | +* [Message routing query based on device twin](../iot-hub/iot-hub-devguide-routing-query-syntax.md#message-routing-query-based-on-device-twin) |
| 64 | + |
| 65 | +### File upload |
| 66 | +IoT Hub only supports file upload APIs for device identities, not module identities. Since IoT Edge exclusively uses modules, file upload isn't natively supported in IoT Edge. |
| 67 | + |
| 68 | +For more information on uploading files with IoT Hub, see [Upload files with IoT Hub](../iot-hub/iot-hub-devguide-file-upload.md). |
| 69 | + |
| 70 | +## Next steps |
| 71 | +For more information, see [IoT Hub other limits](../iot-hub/iot-hub-devguide-quotas-throttling.md#other-limits). |
0 commit comments