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-edge/how-to-vs-code-develop-module.md
+50-6Lines changed: 50 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ zone_pivot_groups: iotedge-dev
17
17
18
18
This article shows you how to use Visual Studio Code to develop and debug IoT Edge modules in multiple languages and multiple architectures. On your development computer, you can use Visual Studio Code to attach and debug your module in a local or remote module container.
19
19
20
-
You can choose either the **Azure IoT Edge Dev Tool** CLI or the **Azure IoT Edge tools for Visual Studio Code** extension as your IoT Edge development tool. Use the tool selector button at the beginning to choose your tool option for this article.
20
+
You can choose either the **Azure IoT Edge Dev Tool**command-line tool (CLI) or the **Azure IoT Edge tools for Visual Studio Code** extension as your IoT Edge development tool. Use the tool selector button at the beginning to choose your tool option for this article.
21
21
22
22
Visual Studio Code supports writing IoT Edge modules in the following programming languages:
23
23
@@ -29,8 +29,8 @@ Visual Studio Code supports writing IoT Edge modules in the following programmin
29
29
30
30
Azure IoT Edge supports the following device architectures:
31
31
32
-
*X64
33
-
*ARM32
32
+
*AMD64
33
+
*ARM32v7
34
34
* ARM64
35
35
36
36
For more information about supported operating systems, languages, and architectures, see [Language and architecture support](module-development.md#language-and-architecture-support).
@@ -72,7 +72,7 @@ To build and deploy your module image, you need Docker to build the module image
72
72
73
73
::: zone pivot="iotedge-dev-cli"
74
74
75
-
- Install the Python-based [Azure IoT Edge Dev Tool](https://pypi.org/project/iotedgedev/) with the following command to enable you to debug, run, and test your IoT Edge solution. [Python (3.6/3.7)](https://www.python.org/downloads/) and [Pip3](https://pip.pypa.io/en/stable/installation/) are required.
75
+
- Install the Python-based [Azure IoT Edge Dev Tool](https://pypi.org/project/iotedgedev/) with the following command to enable you to debug, run, and test your IoT Edge solution. [Python (3.6 or 3.7)](https://www.python.org/downloads/) and [Pip3](https://pip.pypa.io/en/stable/installation/) are required.
76
76
77
77
```bash
78
78
pip3 install iotedgedev
@@ -260,6 +260,30 @@ For example:
260
260
261
261
::: zone-end
262
262
263
+
::: zone pivot="iotedge-dev-cli"
264
+
265
+
### Set IoT Edge runtime version
266
+
267
+
The latest stable IoT Edge system module version is 1.4. Set your system modules to version 1.4.
268
+
269
+
1. In Visual Studio Code, open *deployment.debug.template.json* deployment manifest file. The [deployment manifest](module-deployment-monitoring.md#deployment-manifest) is a JSON document that describes the modules to be configured on the targeted IoT Edge device.
270
+
1. Change the runtime version for the system runtime module images *edgeAgent* and *edgeHub*. For example, if you want to use the IoT Edge runtime version 1.4, change the following lines in the deployment manifest file:
You may receive a security warning recommending the use of `--password-stdin`. While that is a recommended best practice for production scenarios, it's outside the scope of this tutorial. For more information, see the [docker login](https://docs.docker.com/engine/reference/commandline/login/#provide-a-password-using-stdin) reference.
631
+
632
+
1. Sign in to the Azure Container Registry. You may need to [Install Azure CLI](/cli/azure/install-azure-cli) to use the `az` command. This command asks for your user name and password found in your container registry in **Settings** > **Access keys**.
633
+
634
+
```azurecli
635
+
az acr login -n <ACR registry name>
636
+
```
637
+
>[!TIP]
638
+
>If you get logged out at any point in this tutorial, repeat the Docker and Azure Container Registry sign in steps to continue.
639
+
596
640
#### Build module Docker image
597
641
598
642
Use the module's Dockerfile to [build](https://docs.docker.com/engine/reference/commandline/build/) the module Docker image.
Use the [IoT Edge Azure CLI set-modules](/cli/azure/iot/edge#az-iot-edge-set-modules) command to deploy the modules to the Azure IoT Hub. For example, to deploy the modules defined in the *deployment.debug.amd64.json* file to IoT Hub *my-iot-hub* for the IoT Edge device *my-device*, use the following command:
680
+
Use the [IoT Edge Azure CLI set-modules](/cli/azure/iot/edge#az-iot-edge-set-modules) command to deploy the modules to the Azure IoT Hub. For example, to deploy the modules defined in the *deployment.debug.template.json* file to IoT Hub *my-iot-hub*for the IoT Edge device *my-device*, use the following command:
> You can find your IoT Hub connection string in the Azure portal in your IoT Hub > **Security settings** > **Shared access policies** > **iothubowner**.
687
+
> You can find your IoT Hub shared access keyin the Azure portal in your IoT Hub >**Security settings**>**Shared access policies**>**iothubowner**.
0 commit comments