Skip to content

Commit c575f66

Browse files
authored
Merge pull request #310974 from RoseHJM/mdb-uuf-add-troubleshooting
MDB - UUF - Add troubleshoot with Copilot section
2 parents ecc1ef6 + e25b269 commit c575f66

3 files changed

Lines changed: 44 additions & 16 deletions

File tree

articles/dev-box/how-to-set-up-dev-tunnels.md

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Connect to Microsoft Dev Box Using VS Code
3-
description: Learn how to set up and connect to your Microsoft Dev Box using the Open in VS Code feature. Follow step-by-step instructions to enable tunnels for a pool, install the Dev Box extension, and connect remotely for development.
3+
description: Learn how to set up and connect to your Microsoft Dev Box using the Open in VS Code feature. Enable tunnels for a pool, install the Dev Box extension, and connect remotely for development.
44
author: RoseHJM
55
contributors:
66
ms.topic: how-to
7-
ms.date: 08/28/2025
7+
ms.date: 01/27/2026
88
ms.author: rosemalcolm
99
ms.reviewer: rosemalcolm
1010
---
@@ -16,17 +16,17 @@ Use Microsoft Dev Box with Visual Studio Code (VS Code) to create secure, cloud-
1616
## Prerequisites
1717

1818
- A dev center configured with at least one project and a dev box pool.
19-
- If you don't have a dev center, create one following these steps:[Quickstart: Configure Microsoft Dev Box](quickstart-configure-dev-box-service.md)
19+
- If you don't have a dev center, create one following these steps: [Quickstart: Configure Microsoft Dev Box](quickstart-configure-dev-box-service.md)
2020
- A dev box.
2121
- If you don't have a dev box, create one following these steps: [Quickstart: Create and connect to a dev box by using the Microsoft Dev Box developer portal](quickstart-create-dev-box.md)
2222

2323
## Enable Dev Tunnels on a Dev Box Pool
2424

25-
Dev Box Dev Tunnels is a feature that allows developers to connect to their Dev Box using Visual Studio Code (VS Code) through secure tunnels. This feature is particularly useful for developers who want to work remotely or from different locations without needing a full remote desktop connection.
25+
Dev Box Dev Tunnels is a feature that developers use to connect to their Dev Box by using Visual Studio Code (VS Code) through secure tunnels. This feature is particularly useful for developers who want to work remotely or from different locations without needing a full remote desktop connection.
2626

2727
### Register the Dev Box Tunnels preview feature
2828

29-
While Dev Box Tunnels is in preview, you must register the feature in your Azure subscription.
29+
While Dev Box Tunnels is in preview, register the feature in your Azure subscription.
3030

3131
1. Sign in to the [Azure portal](https://portal.azure.com).
3232

@@ -44,9 +44,9 @@ While Dev Box Tunnels is in preview, you must register the feature in your Azure
4444

4545
### Enable dev tunnels for a dev box pool
4646

47-
Dev tunnels are enabled on a per-pool basis. To enable tunnels for a dev box pool:
47+
Enable dev tunnels for each dev box pool. To enable tunnels for a dev box pool:
4848

49-
1. Navigate to the project that contains the dev box pool where you want to enable tunnels.
49+
1. Go to the project that contains the dev box pool where you want to enable tunnels.
5050

5151
1. On the left menu, select **Manage** > **Dev box pools**.
5252

@@ -60,11 +60,11 @@ Dev tunnels are enabled on a per-pool basis. To enable tunnels for a dev box poo
6060

6161
## Connect to a dev box by using a dev tunnel
6262

63-
Follow these steps to set up a dev tunnel and connect to your dev box using VS Code.
63+
Follow these steps to set up a dev tunnel and connect to your dev box by using VS Code.
6464

6565
1. Install VS Code extension
6666

67-
In your **local** VS Code, install the [**Dev Box**](https://marketplace.visualstudio.com/items?itemName=DevCenter.ms-devbox) extension from the VS Code Extension Marketplace. Dev tunnels requires version 2.0.0 or later. Make sure you install the extension locally, not on the Dev Box you want to connect to.
67+
In your **local** VS Code, install the [**Dev Box**](https://marketplace.visualstudio.com/items?itemName=DevCenter.ms-devbox) extension from the VS Code Extension Marketplace. Dev tunnels require version 2.0.0 or later. Make sure you install the extension locally, not on the Dev Box you want to connect to.
6868

6969
:::image type="content" source="media/how-to-set-up-dev-tunnels/dev-tunnels-dev-box-extension.png" alt-text="Screenshot of the Dev Box extension in Visual Studio Code showing the extension details and the install option.":::
7070

@@ -80,28 +80,56 @@ Follow these steps to set up a dev tunnel and connect to your dev box using VS C
8080

8181
1. Explore the remote experience in VS Code
8282

83-
A new VS Code window opens. You can open any folder or workspace on the remote Dev Box using **File** > **Open File/Folder/Workspace** just as you would locally.
83+
A new VS Code window opens. You can open any folder or workspace on the remote Dev Box by using **File** > **Open File/Folder/Workspace** just as you would locally.
8484

85-
### Connect to Windows Substem for Linux
85+
### Connect to Windows Subsystem for Linux
8686

87-
If you have a Windows Subsystem for Linux (WSL) environment on the Dev Box, connect to it using **Remote Explorer**.
87+
If you have a Windows Subsystem for Linux (WSL) environment on the Dev Box, use **Remote Explorer** to connect to it.
8888

89-
Select WSL targets from the dropdown to see all the WSL distributions. Open any WSL distribution in the current or a new window.
89+
Select WSL targets from the dropdown to see all the WSL distributions. Open any WSL distribution in the current window or a new window.
9090

9191
:::image type="content" source="media/how-to-set-up-dev-tunnels/dev-box-dev-tunnel-linux.png" alt-text="Screenshot of Visual Studio Code Remote Explorer showing available WSL distributions with the Dev Box WSL target highlighted.":::
9292

9393

9494
For more information on the WSL development experience, see [Remote - WSL](https://code.visualstudio.com/docs/remote/wsl) and [Set up a WSL development environment](/windows/wsl/setup/environment).
9595

96+
## Troubleshoot connectivity problems with Copilot
97+
98+
If you have connectivity problems with your Dev Box, use **Copilot connectivity assist** to diagnose and resolve them. This feature provides guided troubleshooting through GitHub Copilot and the Dev Box MCP Server to help you identify and fix common connection problems.
99+
100+
To use Copilot connectivity assist:
101+
102+
1. In VS Code, open the Dev Box extension by selecting the Dev Box icon in the left sidebar.
103+
104+
1. In the **Dev Box Resources** panel, find the Dev Box you can't connect to.
105+
106+
1. Select the settings icon (gear) next to the Dev Box, or right-click the Dev Box name to open the context menu.
107+
108+
1. Select **Copilot connectivity assist**.
109+
110+
:::image type="content" source="media/how-to-set-up-dev-tunnels/dev-tunnels-connect-tunnel-copilot.png" alt-text="Screenshot of the Dev Box extension in VS Code showing the context menu with the Copilot connectivity assist option highlighted.":::
111+
112+
1. Follow the guided prompts from Copilot to diagnose and resolve your connectivity problem.
113+
114+
> [!NOTE]
115+
> This menu option runs `devbox_think` from the DevBox MCP Server. You must have the [DevBox MCP Server](overview-what-is-dev-box-mcp-server.md) installed and configured in VS Code to use this feature. Follow the prompts provided by Copilot to complete the troubleshooting process.
116+
117+
Copilot connectivity assist can help with problems such as:
118+
119+
- Tunnel connection failures
120+
- Authentication problems
121+
- Network configuration problems
122+
- Dev Box state problems (stopped, hibernated, or unavailable)
123+
96124
## Frequently asked questions
97125

98-
- Why do I need to sign-in to the Dev Box before enabling the tunnel?
126+
- Why do I need to sign in to the Dev Box before enabling the tunnel?
99127

100-
This step is required to establish a user session for setting up the tunnel. After the initial sign-in, you can just disconnect from the Dev Box. Then you can enable or connect to the tunnel without logging in again, unless the Dev Box is shut down or restarted.
128+
You need to sign in to create a user session for setting up the tunnel. After the initial authentication, you can disconnect from the Dev Box. You can enable or connect to the tunnel without signing in again, unless the Dev Box shuts down or restarts.
101129

102130
- Why can't I connect to the Dev Box even if the tunnel is enabled?
103131

104-
Refresh the Dev Box extension explorer view with the button in the top right corner to check the latest status of the tunnel. If the tunnel is enabled, but you still can't connect, try disabling the tunnel, signing in to the Dev Box, and then re-enabling the tunnel.
132+
Refresh the Dev Box extension explorer view by using the button in the upper right corner to check the latest status of the tunnel. If the tunnel is enabled, but you still can't connect, try disabling the tunnel, signing in to the Dev Box, and then re-enabling the tunnel.
105133

106134
## Related content
107135

-1.17 KB
Loading
23.7 KB
Loading

0 commit comments

Comments
 (0)