Difference between revisions of "SBCX-TN-003: Deploying modules to Azure IoT Edge-enabled SBCX with Visual Studio Code"

From DAVE Developer's Wiki
Jump to: navigation, search
(Introduction)
Line 25: Line 25:
  
 
This article is based on this previous TN: [[SBCX-TN-002:_Running_Microsoft_Azure_IoT_Edge_runtime|''SBCX-TN-002: Running Microsoft Azure IoT Edge runtime'']]. As such, '''SBCX-TN-002 is a prerequisite to complete this TN'''.
 
This article is based on this previous TN: [[SBCX-TN-002:_Running_Microsoft_Azure_IoT_Edge_runtime|''SBCX-TN-002: Running Microsoft Azure IoT Edge runtime'']]. As such, '''SBCX-TN-002 is a prerequisite to complete this TN'''.
 +
 +
The procedure illustrated here is based on [https://docs.microsoft.com/en-us/azure/iot-edge/how-to-deploy-modules-vscode this document].
  
 
==Setting up VSC==
 
==Setting up VSC==

Revision as of 07:27, 20 August 2019

Info Box
SBC-AXEL-02.png Applies to SBC AXEL
Axel-04.png Applies to Axel Ultra
Axel-lite 02.png Applies to Axel Lite
Axel-02.png Applies to AXEL ESATTA
Warning-icon.png This technical note was validated against specific versions of hardware and software. It may not work with other versions. Warning-icon.png

History[edit | edit source]

Version Date Notes
1.0.0 August 2019 First public release

Introduction[edit | edit source]

The goal of this document is to show how to deploy modules to a Azure IoT Edge-enabled SBC Axel board. It is recalled that, according to Microsoft documentation, modules are

the smallest computation units managed by IoT Edge, and can contain Microsoft services (such as Azure Stream Analytics), 3rd-party services or your own solution-specific code.

There are different methods to deploy such modules to the IoT Edge-enabled devices. This Technical Note (TN for short) will describe how to use Visual Studio Code (VSC) to carry out such an operation on SBCX single-board computer.

This article is based on this previous TN: SBCX-TN-002: Running Microsoft Azure IoT Edge runtime. As such, SBCX-TN-002 is a prerequisite to complete this TN.

The procedure illustrated here is based on this document.

Setting up VSC[edit | edit source]

To set up Visual Studio Code, the Azure IoT Tools extension package has to be installed.

After installing this package, the Welcome to Azure IoT Tools tab should open automatically:


Welcome to Azure IoT Tools tab


This tab is extremely convenient to establish the connection between VSC and the IoT hub we created previously on Azure platform.

After installing the Azure IoT Tools extension package, VSC suggests to install the iotedgehubdev as well. Although it is not necessary, this packake may be useful for debugging tasks. For more details, please tefer to this page.


Deploying a simple module[edit | edit source]