Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 2.06 KB

howto-deploy-modules-az.md

File metadata and controls

47 lines (28 loc) · 2.06 KB

Deploy Industrial IoT Edge Modules using Azure CLI

Home

This article explains how to deploy the Industrial IoT Edge modules to Azure IoT Edge using the Azure Portal and Marketplace.

Before you begin,

  1. Follow the instructions to set up a IoT Edge device.

  2. Obtain the IoT Hub name and device id of the installed IoT Edge Gateway.

  3. Install the Azure CLI. You must have at least v2.0.24, which you can verify with az --version.

  4. Add the IoT Edge Extension with the following commands:

    az extension add --name azure-cli-iot-ext

To deploy all required modules using Az...

  1. Save the deployment manifest into a deployment.json file.

  2. 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. az iot edge set-modules output

  3. 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]

    The device id parameter is case-sensitive. az iot hub module-identity list output

More information about az and IoT Edge can be found here.

Next steps