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-visual-studio-develop-module.md
+12-18Lines changed: 12 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,8 @@ description: Use Visual Studio with Azure IoT Tools to develop a C or C# IoT Edg
4
4
services: iot-edge
5
5
author: shizn
6
6
manager: philmea
7
-
8
7
ms.author: xshi
9
-
ms.date: 07/22/2019
8
+
ms.date: 3/27/2020
10
9
ms.topic: conceptual
11
10
ms.service: iot-edge
12
11
---
@@ -25,7 +24,7 @@ This article shows you how to use the Azure IoT Edge Tools for Visual Studio 201
25
24
26
25
## Prerequisites
27
26
28
-
This article assumes that you use a computer or virtual machine running Windows as your development machine. On Windows computers you can develop either Windows or Linux modules. To develop Windows modules, use a Windows computer running version 1809/build 17763 or newer. To develop Linux modules, use a Windows computer that meets the [requirements for Docker Desktop](https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install).
27
+
This article assumes that you use a computer or virtual machine running Windows as your development machine. On Windows computers, you can develop either Windows or Linux modules. To develop Windows modules, use a Windows computer running version 1809/build 17763 or newer. To develop Linux modules, use a Windows computer that meets the [requirements for Docker Desktop](https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install).
29
28
30
29
Because this article uses Visual Studio 2019 as the main development tool, install Visual Studio. Make sure you include the **Azure development** and **Desktop development with C++** workloads in your Visual Studio 2019 installation. You can [Modify Visual Studio 2019](https://docs.microsoft.com/visualstudio/install/modify-visual-studio?view=vs-2019) to add the required workloads.
31
30
@@ -66,15 +65,15 @@ After your Visual Studio 2019 is ready, you also need the following tools and co
66
65
67
66
### Check your tools version
68
67
69
-
1. From the **Tools** menu, select **Extensions and Updates**. Expand **Installed > Tools** and you can find **Azure IoT Edge Tools** and **Cloud Explorer for Visual Studio**.
68
+
1. From the **Extensions** menu, select **Manage Extensions**. Expand **Installed > Tools** and you can find **Azure IoT Edge Tools for Visual Studio** and **Cloud Explorer for Visual Studio**.
70
69
71
70
1. Note the installed version. You can compare this version with the latest version on Visual Studio Marketplace ([Cloud Explorer](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.CloudExplorerForVS2019), [Azure IoT Edge](https://marketplace.visualstudio.com/items?itemName=vsc-iot.vs16iotedgetools))
72
71
73
72
1. If your version is older than what's available on Visual Studio Marketplace, update your tools in Visual Studio as shown in the following section.
74
73
75
74
### Update your tools
76
75
77
-
1. In the **Extensions and Updates**dialog, expand **Updates > Visual Studio Marketplace**, select **Azure IoT Edge Tools** or **Cloud Explorer for Visual Studio** and select **Update**.
76
+
1. In the **Manage Extensions**window, expand **Updates > Visual Studio Marketplace**, select **Azure IoT Edge Tools** or **Cloud Explorer for Visual Studio** and select **Update**.
78
77
79
78
1. After the tools update is downloaded, close Visual Studio to trigger the tools update using the VSIX installer.
80
79
@@ -117,7 +116,7 @@ When you're ready to customize the module template with your own code, use the [
@@ -161,7 +160,7 @@ Typically, you'll want to test and debug each module before running it within an
161
160
162
161
After you're done developing a single module, you might want to run and debug an entire solution with multiple modules.
163
162
164
-
1. Add a second module to the solution by right-clicking **AzureIoTEdgeApp1** and selecting **Add** > **New IoT Edge Module**. The default name of the second module is **IotEdgeModule2** and will act as another pipe module.
163
+
1. In **Solution Explorer**, add a second module to the solution by right-clicking **AzureIoTEdgeApp1** and selecting **Add** > **New IoT Edge Module**. The default name of the second module is **IotEdgeModule2** and will act as another pipe module.
165
164
166
165
1. Open the file `deployment.template.json` and you'll see **IotEdgeModule2** has been added in the **modules** section. Replace the **routes** section with the following. If you have customized your module names, make sure you update these names to match.
167
166
@@ -189,7 +188,7 @@ After you're done developing a single module, you might want to run and debug an
189
188
> [!NOTE]
190
189
> When choosing **Debug**, Visual Studio uses `Dockerfile.(amd64|windows-amd64).debug` to build Docker images. This includes the .NET Core command-line debugger VSDBG in your container image while building it. For production-ready IoT Edge modules, we recommend that you use the **Release** configuration, which uses `Dockerfile.(amd64|windows-amd64)` without VSDBG.
191
190
192
-
1. If you're using a private registry like Azure Container Registry, use the following Docker command to sign in to it. If you're using local registry, you can [run a local registry](https://docs.docker.com/registry/deploying/#run-a-local-registry).
191
+
1. If you're using a private registry like Azure Container Registry (ACR), use the following Docker command to sign in to it. You can get the username and password from the **Access keys** page of your registry in the Azure portal. If you're using local registry, you can [run a local registry](https://docs.docker.com/registry/deploying/#run-a-local-registry).
@@ -211,9 +210,7 @@ After you're done developing a single module, you might want to run and debug an
211
210
}
212
211
```
213
212
214
-
1. Right-click **AzureIoTEdgeApp1** and select **Build and Push Edge Solution** to build and push the Docker image for each module.
215
-
216
-

213
+
1. In **Solution Explorer**, right-click **AzureIoTEdgeApp1** and select **Build and Push IoT Edge Modules** to build and push the Docker image for each module.
217
214
218
215
## Deploy the solution
219
216
@@ -223,18 +220,15 @@ In the quickstart article that you used to set up your IoT Edge device, you depl
223
220
224
221
1. In **Cloud Explorer**, expand your subscription, find your Azure IoT Hub and the Azure IoT Edge device you want to deploy.
225
222
226
-
1. Right-click on the IoT Edge device to create a deployment for it, you need to selectthe deployment manifest file under the `$AzureIoTEdgeAppSolutionDir\config\deployment.(amd64|amd64.debug|windows-amd64).json`.
227
-
228
-
> [!NOTE]
229
-
> You must not select`$AzureIoTEdgeAppSolutionDir\config\deployment_for_local_debug.json`
223
+
1. Right-click on the IoT Edge device to create a deployment forit. Navigate to the deployment manifest configured for your platform locatedin the **config** folder in your Visual Studio solution, such as `deployment.arm32v7.json`.
230
224
231
225
1. Click the refresh button to see the new modules running along with the **SimulatedTemperatureSensor** module and **$edgeAgent** and **$edgeHub**.
232
226
233
227
## View generated data
234
228
235
-
1. To monitor the D2C message fora specific device, select the deviceinthe list and then click **Start Monitoring Built-in Event Endpoint**in the **Action** window.
229
+
1. To monitor the D2C message fora specific IoT-Edge device, select itin your IoT hub in**Cloud Explorer** and then click **Start Monitoring Built-in Event Endpoint**in the **Action** window.
236
230
237
-
1. To stop monitoring data, selectthe device in the list and thenselect**Stop Monitoring Built-in Event Endpoint**in the **Action** window.
231
+
1. To stop monitoring data, select**Stop Monitoring Built-in Event Endpoint**in the **Action** window.
0 commit comments