This article explains how to deploy the Industrial IoT Edge modules to Azure IoT Edge using the Azure Portal and Marketplace.
Before you begin,
-
Follow the instructions to set up a IoT Edge device.
-
Obtain the IoT Hub name and device id of the installed IoT Edge Gateway.
-
Install the Azure CLI. You must have at least
v2.0.24
, which you can verify withaz --version
. -
Add the IoT Edge Extension with the following commands:
az extension add --name azure-cli-iot-ext
To deploy all required modules using Az...
-
Save the deployment manifest into a
deployment.json
file. -
Use the following command to apply the configuration to an IoT Edge device:
az iot edge set-modules --device-id [device id] --hub-name [hub name] --content ./deployment.json
The
device id
parameter is case-sensitive. The content parameter points to the deployment manifest file that you saved. -
Once you've deployed modules to your device, you can view all of them with the following command:
az iot hub module-identity list --device-id [device id] --hub-name [hub name]
More information about az and IoT Edge can be found here.