Skip to content

Commit 7219944

Browse files
committed
Replaced VS Code with Visual Studio Code
1 parent daea0de commit 7219944

16 files changed

+96
-96
lines changed

articles/iot-edge/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@
356356
href: https://azure.microsoft.com/develop/iot/
357357
- name: Azure Roadmap
358358
href: https://azure.microsoft.com/roadmap/?category=iot
359-
- name: Azure IoT Tools for VS Code
359+
- name: Azure IoT Tools for Visual Studio Code
360360
href: https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
361361
- name: Azure IoT Explorer tool
362362
href: https://github.com/Azure/azure-iot-explorer

articles/iot-edge/how-to-deploy-modules-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Here's a basic deployment manifest with one module as an example:
115115

116116
You deploy modules to your device by applying the deployment manifest that you configured with the module information.
117117

118-
Change directories into the folder where your deployment manifest is saved. If you used one of the VS Code IoT Edge templates, use the `deployment.json` file in the **config** folder of your solution directory and not the `deployment.template.json` file.
118+
Change directories into the folder where your deployment manifest is saved. If you used one of the Visual Studio Code IoT Edge templates, use the `deployment.json` file in the **config** folder of your solution directory and not the `deployment.template.json` file.
119119

120120
Use the following command to apply the configuration to an IoT Edge device:
121121

articles/iot-edge/how-to-deploy-modules-vscode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ You deploy modules to your device by applying the deployment manifest that you c
141141

142142
![Select Edge Deployment Manifest](./media/how-to-deploy-modules-vscode/select-deployment-manifest.png)
143143

144-
The results of your deployment are printed in the VS Code output. Successful deployments are applied within a few minutes if the target device is running and connected to the internet.
144+
The results of your deployment are printed in the Visual Studio Code output. Successful deployments are applied within a few minutes if the target device is running and connected to the internet.
145145

146146
## View modules on your device
147147

articles/iot-edge/how-to-vs-code-develop-module.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Develop and debug modules Azure IoT Edge modules using VS Code
2+
title: Develop and debug modules Azure IoT Edge modules using Visual Studio Code
33
description: Use Visual Studio Code to develop, build, and debug a module for Azure IoT Edge using C#, Python, Node.js, Java, or C
44
services: iot-edge
55
author: PatAltimore
@@ -17,7 +17,7 @@ zone_pivot_groups: iotedge-dev
1717

1818
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.
1919

20-
You can choose either the **Azure IoT Edge Dev Tool** CLI or the **Azure IoT Edge tools for VS 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** 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.
2121

2222
Visual Studio Code supports writing IoT Edge modules in the following programming languages:
2323

@@ -93,11 +93,11 @@ Install prerequisites specific to the language you're developing in:
9393
# [C\# / Azure Functions](#tab/csharp+azfunctions)
9494
9595
- Install [.NET Core SDK](https://dotnet.microsoft.com/download)
96-
- Install [C# VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp)
96+
- Install [C# Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp)
9797
9898
# [C](#tab/c)
9999
100-
- Install [C/C++ VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
100+
- Install [C/C++ Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
101101
102102
# [Java](#tab/java)
103103
@@ -111,7 +111,7 @@ Install prerequisites specific to the language you're developing in:
111111
# [Python](#tab/python)
112112
113113
- Install [Python](https://www.python.org/downloads/) and [Pip](https://pip.pypa.io/en/stable/installation/)
114-
- Install [Python VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
114+
- Install [Python Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
115115
- Install the Python-based [Azure IoT Edge Dev Tool](https://pypi.org/project/iotedgedev/) to debug, run, and test your IoT Edge solution. You can alternatively install the Azure IoT Edge Dev Tool using the CLI:
116116
117117
```cmd
@@ -709,25 +709,25 @@ Add your breakpoint to the file `main.py`in the callback method where you added
709709
710710
---
711711
712-
To debug modules on a remote device, you can use Remote SSH debugging in VS Code.
712+
To debug modules on a remote device, you can use Remote SSH debugging in Visual Studio Code.
713713
714-
To enable VS Code remote debugging, install the [Remote Development extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack). For more information about VS Code remote debugging, see [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview).
714+
To enable Visual Studio Code remote debugging, install the [Remote Development extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack). For more information about Visual Studio Code remote debugging, see [Visual Studio Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview).
715715
716-
For details on how to use Remote SSH debugging in VS Code, see [Remote Development using SSH](https://code.visualstudio.com/docs/remote/ssh)
716+
For details on how to use Remote SSH debugging in Visual Studio Code, see [Remote Development using SSH](https://code.visualstudio.com/docs/remote/ssh)
717717
718718
In the Visual Studio Code Debug view, select the debug configuration file for your module. By default, the **.debug** Dockerfile, module's container `createOptions` settings, and `launch.json` file are configured to use *localhost*.
719719

720720
Select **Start Debugging** or select **F5**. Select the process to attach to. In the Visual Studio Code Debug view, you'll see the variables in the left panel.
721721
722722
## Debug using Docker Remote SSH
723723
724-
The Docker and Moby engines support SSH connections to containers allowing you to debug in VS Code connected to a remote device. You need to meet the following prerequisites before you can use this feature.
724+
The Docker and Moby engines support SSH connections to containers allowing you to debug in Visual Studio Code connected to a remote device. You need to meet the following prerequisites before you can use this feature.
725725
726726
### Configure Docker SSH tunneling
727727
728728
1. Follow the steps in [Docker SSH tunneling](https://code.visualstudio.com/docs/containers/ssh#_set-up-ssh-tunneling) to configure SSH tunneling on your development computer. SSH tunneling requires public/private key pair authentication and a Docker context defining the remote device endpoint.
729729
1. Connecting to Docker requires root-level privileges. Follow the steps in [Manage docker as a non-root user](https://docs.docker.com/engine/install/linux-postinstall) to allow connection to the Docker daemon on the remote device. When you're finished debugging, you may want to remove your user from the Docker group.
730-
1. In Visual Studio Code, use the Command Palette (Ctrl+Shift+P) to issue the *Docker Context: Use* command to activate the Docker context pointing to the remote machine. This command causes both VS Code and Docker CLI to use the remote machine context.
730+
1. In Visual Studio Code, use the Command Palette (Ctrl+Shift+P) to issue the *Docker Context: Use* command to activate the Docker context pointing to the remote machine. This command causes both Visual Studio Code and Docker CLI to use the remote machine context.
731731

732732
> [!TIP]
733733
> All Docker commands use the current context. Remember to change context back to *default* when you are done debugging.
@@ -751,7 +751,7 @@ The Docker and Moby engines support SSH connections to containers allowing you t
751751
edgeAgent
752752
```
753753

754-
1. In the *.vscode* directory, add a new configuration to **launch.json** by opening the file in VS Code. Select **Add configuration** then choose the matching remote attach template for your module. For example, the following configuration is for .NET Core. Change the value for the *-H* parameter in *PipeArgs* to your device DNS name or IP address.
754+
1. In the *.vscode* directory, add a new configuration to **launch.json** by opening the file in Visual Studio Code. Select **Add configuration** then choose the matching remote attach template for your module. For example, the following configuration is for .NET Core. Change the value for the *-H* parameter in *PipeArgs* to your device DNS name or IP address.
755755

756756
```json
757757
"configurations": [
@@ -785,13 +785,13 @@ The Docker and Moby engines support SSH connections to containers allowing you t
785785
786786
### Remotely debug your module
787787
788-
1. In VS Code Debug view, select the debug configuration *Remote Debug IoT Edge Module (.NET Core)*.
788+
1. In Visual Studio Code Debug view, select the debug configuration *Remote Debug IoT Edge Module (.NET Core)*.
789789
1. Select **Start Debugging** or select **F5**. Select the process to attach to.
790790
1. In the Visual Studio Code Debug view, you'll see the variables in the left panel.
791-
1. In VS Code, set breakpoints in your custom module.
791+
1. In Visual Studio Code, set breakpoints in your custom module.
792792
1. When a breakpoint is hit, you can inspect variables, step through code, and debug your module.
793793
794-
:::image type="content" source="media/how-to-vs-code-develop-module/vs-code-breakpoint.png" alt-text="Screenshot of VS Code attached to a Docker container on a remote device paused at a breakpoint.":::
794+
:::image type="content" source="media/how-to-vs-code-develop-module/vs-code-breakpoint.png" alt-text="Screenshot of Visual Studio Code attached to a Docker container on a remote device paused at a breakpoint.":::
795795
> [!NOTE]
796796
> The preceding example shows how to debug IoT Edge modules on remote containers. It added a remote Docker context and changes to the Docker privileges on the remote device. After you finish debugging your modules, set your Docker context to *default* and remove privileges from your user account.
797797

articles/iot-edge/includes/debug-without-container-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoT Edge modules need an IoT Edge environment to run and debug. You can use an I
3131
3232
You can use the Docker Explorer view in Visual Studio Code to see the module's running status.
3333
34-
:::image type="content" source="media/simulator-status.png" alt-text="Screenshot showing simulator module status in the Docker Explorer pane of VS Code.":::
34+
:::image type="content" source="media/simulator-status.png" alt-text="Screenshot showing simulator module status in the Docker Explorer pane of Visual Studio Code.":::
3535
3636
The **edgeHubDev** container is the core of the local IoT Edge simulator. It can run on your development machine without the IoT Edge security daemon and provides environment settings for your native module app or module containers. The **input** container exposes REST APIs to help bridge messages to the target input channel on your module.
3737

articles/iot-edge/includes/iot-edge-create-release-pipeline-for-continuous-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Create a new pipeline, and add a new stage:
5252
| Default platform | Select the appropriate operating system for your modules based on your targeted IoT Edge device. |
5353
| Output path| Put the path `$(System.DefaultWorkingDirectory)/Drop/drop/configs/deployment.json`. This path is the final IoT Edge deployment manifest file. |
5454

55-
These configurations help replace the module image URLs in the `deployment.template.json` file. The **Generate deployment manifest** also helps replace the variables with the exact value you defined in the `deployment.template.json` file. In VS/VS Code, you are specifying the actual value in a `.env` file. In Azure Pipelines, you set the value in **Release Pipeline Variables** tab. Move to **Variables** tab and configure the name and value as following:
55+
These configurations help replace the module image URLs in the `deployment.template.json` file. The **Generate deployment manifest** also helps replace the variables with the exact value you defined in the `deployment.template.json` file. In Visual Studio/Visual Studio Code, you are specifying the actual value in a `.env` file. In Azure Pipelines, you set the value in **Release Pipeline Variables** tab. Move to **Variables** tab and configure the name and value as following:
5656

5757
* **ACR_ADDRESS**: Your Azure Container Registry **Login server** value. You can retrieve the Login server from the Overview page of your container registry in the Azure portal.
5858
* **ACR_PASSWORD**: Your Azure Container Registry password.

articles/iot-edge/includes/iot-edge-register-device-x509.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ While there is no support for device registration with X.509 certificates throug
6969

7070
All the devices that connect to your IoT hub are listed in the **Azure IoT Hub** section of the Visual Studio Code Explorer. IoT Edge devices are distinguishable from non-Edge devices with a different icon, and the fact that the **$edgeAgent** and **$edgeHub** modules are deployed to each IoT Edge device.
7171

72-
![Use VS Code to view all IoT Edge devices in your IoT hub](media/iot-edge-register-device-x509/view-devices.png)
72+
![Use Visual Studio Code to view all IoT Edge devices in your IoT hub](media/iot-edge-register-device-x509/view-devices.png)
7373

7474
# [Azure CLI](#tab/azure-cli)
7575

articles/iot-edge/tutorial-c-module.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Use the following table to understand your options for developing and deploying
4141

4242
| C | Visual Studio Code | Visual Studio |
4343
| - | ------------------ | ------------- |
44-
| **Linux AMD64** | ![Use VS Code for C modules on Linux AMD64](./media/tutorial-c-module/green-check.png) | ![Use VS for C modules on Linux AMD64](./media/tutorial-c-module/green-check.png) |
45-
| **Linux ARM32** | ![Use VS Code for C modules on Linux ARM32](./media/tutorial-c-module/green-check.png) | ![Use VS for C modules on Linux ARM32](./media/tutorial-c-module/green-check.png) |
46-
| **Linux ARM64** | ![Use VS Code for C modules on Linux ARM64](./media/tutorial-c-module/green-check.png) | ![Use VS for C modules on Linux ARM64](./media/tutorial-c-module/green-check.png) |
44+
| **Linux AMD64** | ![Use Visual Studio Code for C modules on Linux AMD64](./media/tutorial-c-module/green-check.png) | ![Use VS for C modules on Linux AMD64](./media/tutorial-c-module/green-check.png) |
45+
| **Linux ARM32** | ![Use Visual Studio Code for C modules on Linux ARM32](./media/tutorial-c-module/green-check.png) | ![Use VS for C modules on Linux ARM32](./media/tutorial-c-module/green-check.png) |
46+
| **Linux ARM64** | ![Use Visual Studio Code for C modules on Linux ARM64](./media/tutorial-c-module/green-check.png) | ![Use VS for C modules on Linux ARM64](./media/tutorial-c-module/green-check.png) |
4747

4848
Before beginning this tutorial, you should have gone through the previous tutorial to set up your development environment for Linux container development: [Develop IoT Edge modules using Linux containers](tutorial-develop-for-linux.md). By completing that tutorial, you should have the following prerequisites in place:
4949

@@ -67,15 +67,15 @@ The following steps create an IoT Edge module project for C by using Visual Stud
6767

6868
Create a C solution template that you can customize with your own code.
6969

70-
1. Select **View** > **Command Palette** to open the VS Code command palette.
70+
1. Select **View** > **Command Palette** to open the Visual Studio Code command palette.
7171

7272
2. In the command palette, type and run the command **Azure: Sign in** and follow the instructions to sign in your Azure account. If you've already signed in, you can skip this step.
7373

7474
3. In the command palette, type and run the command **Azure IoT Edge: New IoT Edge solution**. Follow the prompts in the command palette to create your solution.
7575

7676
| Field | Value |
7777
| ----- | ----- |
78-
| Select folder | Choose the location on your development machine for VS Code to create the solution files. |
78+
| Select folder | Choose the location on your development machine for Visual Studio Code to create the solution files. |
7979
| Provide a solution name | Enter a descriptive name for your solution or accept the default **EdgeSolution**. |
8080
| Select module template | Choose **C Module**. |
8181
| Provide a module name | Name your module **CModule**. |
@@ -89,7 +89,7 @@ The environment file stores the credentials for your container registry and shar
8989

9090
The IoT Edge extension tries to pull your container registry credentials from Azure and populate them in the environment file. Check to see if your credentials are already included. If not, add them now:
9191

92-
1. In the VS Code explorer, open the .env file.
92+
1. In the Visual Studio Code explorer, open the .env file.
9393
2. Update the fields with the **username** and **password** values that you copied from your Azure container registry.
9494
3. Save this file.
9595

@@ -278,7 +278,7 @@ The default module code receives messages on an input queue and passes them alon
278278
279279
1. Save the main.c file.
280280
281-
1. In the VS Code explorer, open the **deployment.template.json** file in your IoT Edge solution workspace.
281+
1. In the Visual Studio Code explorer, open the **deployment.template.json** file in your IoT Edge solution workspace.
282282
283283
1. Add the CModule module twin to the deployment manifest. Insert the following JSON content at the bottom of the `moduleContent` section, after the `$edgeHub` module twin:
284284
@@ -298,7 +298,7 @@ The default module code receives messages on an input queue and passes them alon
298298

299299
In the previous section, you created an IoT Edge solution and added code to the CModule that will filter out messages where the reported machine temperature is within the acceptable limits. Now you need to build the solution as a container image and push it to your container registry.
300300

301-
1. Open the VS Code terminal by selecting **View** > **Terminal**.
301+
1. Open the Visual Studio Code terminal by selecting **View** > **Terminal**.
302302

303303
2. Sign in to Docker by entering the following command in the terminal. Sign in with the username, password, and login server from your Azure container registry. You can retrieve these values from the **Access keys** section of your registry in the Azure portal.
304304

@@ -308,7 +308,7 @@ In the previous section, you created an IoT Edge solution and added code to the
308308

309309
You may receive a security warning recommending the use of `--password-stdin`. While that best practice is recommended 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.
310310

311-
3. In the VS Code explorer, right-click the **deployment.template.json** file and select **Build and Push IoT Edge Solution**.
311+
3. In the Visual Studio Code explorer, right-click the **deployment.template.json** file and select **Build and Push IoT Edge Solution**.
312312

313313
The build and push command starts three operations. First, it creates a new folder in the solution called **config** that holds the full deployment manifest, built out of information in the deployment template and other solution files. Second, it runs `docker build` to build the container image based on the appropriate dockerfile for your target architecture. Then, it runs `docker push` to push the image repository to your container registry.
314314

0 commit comments

Comments
 (0)