Skip to content

Commit 0ce0ef5

Browse files
authored
Merge pull request #308394 from v-thepet/devbox2
Freshness Edit: Microsoft Dev Box 2
2 parents fefac71 + dfb2224 commit 0ce0ef5

3 files changed

Lines changed: 117 additions & 90 deletions

File tree

Lines changed: 117 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,127 +1,154 @@
11
---
2-
title: Resolve Dev Box connectivity issues
3-
description: Learn how to resolve connection issues with dev boxes, including disconnections and sign-in problems, to maintain a stable workflow.
4-
author: RoseHJM
5-
ms.author: rosemalcolm
6-
ms.service: dev-box
7-
ms.topic: troubleshooting-general
8-
ms.date: 10/22/2024
2+
title: Troubleshoot connectivity issues
3+
description: Investigate and resolve Microsoft Dev Box connectivity problems such as connection failures, sign-in issues, disconnections, and high latencies.
4+
author: RoseHJM
5+
ms.author: rosemalcolm
6+
ms.service: dev-box
7+
ms.topic: troubleshooting-general
8+
ms.date: 11/21/2025
99

10-
#customer intent: As a developer, I want to troubleshoot my Remote Desktop connection issues with dev boxes so that I can maintain a stable and efficient workflow.
11-
---
12-
13-
# Resolve connectivity issues with dev boxes
14-
15-
If you're experiencing problems with your Remote Desktop connection to your dev box, this guide can help you find and fix the issues quickly. Whether it's frequent disconnections, latency, or sign-in problems, we've got solutions that can get you back on track.
16-
17-
## Prerequisites
18-
19-
Before you begin troubleshooting, ensure you have:
20-
21-
- Access to your dev box.
22-
- Administrative permissions if needed.
23-
- An understanding of your organization's policies related to dev boxes.
10+
#customer intent: As a developer, I want to troubleshoot my connection issues with dev boxes so that I can maintain a stable and efficient workflow.
11+
---
2412

25-
## Steps for troubleshooting
26-
27-
Remote Desktop connections are essential for accessing your Dev Box. However, connectivity issues can sometimes arise due to various factors. This guide provides a comprehensive step-by-step approach to troubleshooting common Remote Desktop connection problems, ensuring that your workflow remains uninterrupted.
28-
29-
Before proceeding with troubleshooting, ensure that your Remote Desktop app is updated and both your client computer, and Dev Box have the latest updates installed.
13+
# Troubleshoot dev box connectivity issues
3014

31-
Any improper network configurations on your Dev Box can disrupt Remote Desktop connections.
15+
This step-by-step troubleshooting guide can help you find and fix Microsoft Dev Box connection issues. These issues can include inability to connect, sign-in problems, frequent disconnections, or high latencies.
3216

33-
Additionally, if you haven't accessed your Dev Box for some time, check whether your organization has a policy that removes users from Microsoft Entra ID due to inactivity. To regain access, contact your support team.
17+
## Prerequisites
3418

35-
### Step 0: Preliminary Checks
36-
1. **Internet Connection:** Verify that your local machine has an active internet connection.
37-
1. **Dev Box Status:** Confirm that your Dev Box is running through the Dev Box portal.
38-
1. **Proxy Settings:** Incorrect internet proxy settings can interfere with the Remote Desktop experience, so ensure these settings are correctly configured.
19+
| Category | Requirements |
20+
|---------|--------------|
21+
| Tools | To create or access a dev box, an organization must set up Microsoft Dev Box with at least one project and one dev box pool. To set up Microsoft Dev Box for an organization, see [Quickstart: Configure Microsoft Dev Box](quickstart-configure-dev-box-service.md).|
22+
| Tools | To connect to a dev box with the Windows App, [install the Windows App](https://apps.microsoft.com/detail/9n1f85v9t8bn) on your client device. |
23+
| Permissions | To create or access a dev box, you need [Dev Box User](quickstart-configure-dev-box-service.md#provide-access-to-a-dev-box-project) permissions in a project that has an available dev box pool. If you don't have permissions to a project, contact your admin.|
3924

40-
### Step 1: Windows Update and App Restart
41-
1. **Pending Updates:** If Windows is updating, it can take up to 30 minutes, during which your Dev Box won't connect.
42-
1. **Restart Remote Desktop:** Close all instances of the Remote Desktop app, terminate any 'msrdc.exe' and 'msrdcw.exe' processes via Task Manager, and then to attempt reconnection, reopen the app.
25+
## Potential quick workaround
4326

44-
### Step 2: Address App Hang and Authentication Issues
45-
1. **App Hang:** If the Remote Desktop app hangs, capture a process dump of MSRDC.exe and create a support request. Restart your computer and try connecting again.
46-
1. **Authentication Errors:** If denied sign-in despite correct credentials, check the join status using `dsregcmd.exe /status`. Resolve any errors with your support team and restart your computer. If authentication errors persist, unsubscribe and resubscribe to your Dev Box pool in the app.
27+
To automatically identify and address dev box issues, try running **Troubleshoot & repair**. [Sign in to the developer portal](https://devbox.microsoft.com) and select **Troubleshoot & repair** from the **More actions** menu on the dev box tile. For more information, see [Resolve connectivity issues with the Troubleshoot and Repair tool](how-to-troubleshoot-repair-dev-box.md).
4728

48-
### Step 3: Browser Client Connection
49-
1. **Browser Access:** Attempt to connect via the browser client by visiting https://DevBox.microsoft.com and selecting "Open in browser".
50-
1. **Black Screen Issue:** If the Remote Desktop Protocol (RDP) window is black, "Shutdown" or "Stop" your Dev Box via the portal and restart it.
29+
## Troubleshooting checklist
5130

52-
### Step 4: Connection Drops During High CPU Load
53-
**Registry Adjustment:** If you experience frequent connection drops with the Remote Desktop app during high CPU load, ensure your Dev Box has the latest Windows 11 build. Set the `SetGpuRealtimePriority` registry value to DWORD 2 in the Dev Box and restart.
31+
> [!div class="checklist"]
32+
> * Verify that your client device has an active internet connection.
33+
> * Make sure your client device and dev box have the latest operating system and security updates installed.
34+
> * Ensure you have the latest [Windows App installed](https://apps.microsoft.com/detail/9n1f85v9t8bn) on your client device.
35+
> * Check for any improper network configurations or internet proxy settings on your client or dev box that could disrupt remote connections.
36+
> * Confirm that your dev box status is **Running**. If the status is **Stopped** or **Hibernated**, select **Start** or **Resume** from the **More actions** menu on the dev box tile in the [developer portal](https://devbox.microsoft.com).
37+
> * Check Windows Update. You can't connect to a dev box for up to 30 minutes while Windows is updating.
38+
> * If you can access your dev box, review security and connection information by selecting the icons on the top connection bar during a session.
39+
> * Review known connectivity issues at [Troubleshoot known Remote Desktop connectivity issues with dev boxes](how-to-troubleshoot-remote-desktop-connectivity.md).
5440
55-
```
56-
key: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations
57-
value name: SetGpuRealtimePriority
58-
value: DWORD 2
59-
```
41+
## Remote connectivity issues
6042

61-
You can set the `SetGpuRealtimePriority` registry value by using this command in an elevated shell:
43+
If the Windows App connection to the dev box hangs or fails, try the following steps to connect.
6244

63-
```
64-
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations" /v SetGpuRealtimePriority /d 2 /t REG_DWORD
65-
```
45+
1. [Sign in to the developer portal](https://devbox.microsoft.com) and restart the dev box by selecting **Restart** from the **More actions** menu on the dev box tile.
46+
1. Once restarted, try again to connect by selecting **Connect via Windows app**.
47+
1. Try connecting via the browser by selecting the caret next to **Connect via Windows app** and then selecting **Open in browser**.
48+
1. Sign out and then back in to the developer portal, and try connecting again.
49+
1. Open Task Manager and terminate any running *msrdc.exe* or *msrdcw.exe* processes. Then try connecting again.
6650

67-
### Step 5: Connection Drops During Low CPU Usage
51+
## Sign-in and authentication issues
6852

69-
If you experience frequent connection drops with the Remote Desktop app despite low CPU usage on the Dev Box, switch Remote Desktop to use TCP instead of UDP.
53+
If you have sign-in or authentication issues despite using correct credentials, try the following steps:
7054

71-
You can configure this setting through a registry edit, or through Group Policy.
55+
1. Use `dsregcmd.exe /status` to check your Microsoft Entra ID join status on your client device and on the dev box if possible. After resolving any errors with your support team, restart the machine.
56+
1. If you don't access your dev box for a while, Microsoft Entra ID might remove your account due to inactivity. To regain access, contact your support team.
57+
1. Try using `dsregcmd.exe /refreshprt` to refresh the Primary Refresh Token (PRT) for a session. Then sign out and sign back in.
58+
1. If you have administrative privileges, try using `dsregcmd.exe /forcerecovery` to reauthenticate and reregister, or `dsregcmd.exe /leave` and `dsregcmd.exe /join` to leave and rejoin Microsoft Entra ID. For more information, see [Troubleshoot devices by using the dsregcmd command](/entra/identity/devices/troubleshoot-device-dsregcmd).
59+
1. If you have admin privileges in the Azure portal, you might need to unsubscribe and resubscribe the dev box to the dev box pool by deleting and recreating the pool.
7260

73-
#### Use TCP instead of UDP - Registry edit:
74-
Close the Remote Desktop app, apply the following registry setting on your client computer, and try reconnecting.
61+
## Connection issues during high CPU load
7562

76-
```
77-
key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
78-
value name: fClientDisableUDP
79-
value: DWORD 1
80-
```
63+
If you experience frequent connection drops during high CPU load on the dev box, you can apply a registry setting to give more GPU priority to remote connection sessions.
8164

82-
You can set the `fClientDisableUDP` registry value by using this command in an elevated shell:
65+
1. Ensure your dev box has the latest Windows 11 build.
66+
1. Open the Registry Editor on the dev box and add the following registry setting.
8367

84-
```
85-
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client" /v fClientDisableUDP /d 1 /t REG_DWORD
86-
```
68+
Key: **HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations**<br>Setting: **SetGpuRealtimePriority**<br>Value: **DWORD 2**
8769

88-
#### Use TCP instead of UDP - Group policy:
89-
Alternatively, use Group Policy Editor on your Dev Box to set RDP transport protocols to "Use only TCP".
70+
Alternatively, you can add and set the **SetGpuRealtimePriority** registry setting and value by running this command in an elevated shell:
9071

91-
1. Open the Group Policy Editor on your Dev Box.
92-
1. Navigate to **Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections**.
93-
1. Open the policy setting **Select RDP transport protocols**.
94-
1. Set it to **Enabled**.
95-
1. For **Select Transport Type**, select **Use only TCP**.
72+
```cmd
73+
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations" /v SetGpuRealtimePriority /d 2 /t REG_DWORD
74+
```
9675

97-
If the preceding steps don't resolve your issue, contact your support team.
76+
1. Restart the dev box.
9877

99-
Include the following details in your incident report:
78+
## Connection issues during low CPU usage
10079

101-
- The time the issue occurred
102-
- Impacted users
103-
- A detailed description of the problem
104-
- The Activity ID from your Remote Desktop session, if available. You can find this ID by clicking on the connection bar during your session.
80+
If you experience frequent connection drops even with low CPU usage on the dev box, you can switch your remote desktop connection to use Transmission Control Protocol (TCP) instead of User Datagram Protocol (UDP). To ensure that the connection uses only TCP, change the settings on both the client device and the dev box.
10581

106-
:::image type="content" source="media/how-to-resolve-dev-box-connectivity-issues/troubleshooting-connection-bar.png" alt-text="Screenshot that shows the Remote Desktop connection bar.":::
82+
### Client settings
10783

108-
- Include information from the connection dialog.
109-
110-
:::image type="content" source="media/how-to-resolve-dev-box-connectivity-issues/troubleshooting-connection-information-dialog.png" alt-text="Screenshot that shows the Troubleshooting connection information dialog box.":::
84+
Explicitly tell the client not to attempt a UDP connection.
85+
86+
# [Windows client](#tab/windows)
87+
88+
1. Open the Local Group Policy Editor `gpedit.msc`.
89+
1. Go to **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Connection Client**.
90+
1. Set the policy setting **Turn Off UDP On Client** to **Enabled**, and then select **OK**.
91+
92+
Alternatively, you can edit the registry to add the following **fClientDisableUDP** setting:
93+
94+
Key: **HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client**<br>Setting: **fClientDisableUDP**<br>Value: **DWORD 1**
11195

112-
In macOS clients, use the terminal to change connections to TCP instead of UDP:
96+
You can also apply the **fClientDisableUDP** registry setting and value by running the following command in an elevated shell:
11397

114-
In the app:
98+
```cmd
99+
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client" /v fClientDisableUDP /d 1 /t REG_DWORD
115100
```
101+
102+
# [Mac client](#tab/mac)
103+
104+
In macOS clients, run the following command in the terminal to change connections to TCP instead of UDP.
105+
106+
```bash
116107
defaults write com.microsoft.rdc.macos ClientSettings.EnableAvdUdpSideTransport false
117108
```
118109

119-
In the beta app:
120-
```
121-
defaults write com.microsoft.rdc.osx.beta ClientSettings.EnableAvdUdpSideTransport false
122-
```
110+
---
111+
112+
### Host settings
113+
114+
Use Group Policy Editor to set the remote desktop transport protocols on your dev box to use only TCP.
115+
116+
1. On your dev box, open the Local Group Policy Editor `gpedit.msc`.
117+
1. Go to **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Connections**.
118+
1. Set the policy setting **Select RDP transport protocols** to **Enabled**.
119+
1. For **Select Transport Type**, select **Use only TCP**, and then select **OK**.
120+
121+
After making these changes, run `gpupdate /force` in an elevated shell on both machines and restart them.
122+
123+
## Get support
123124

125+
If the preceding steps don't resolve your issue, you can contact your admin team, access more support resources, or file a support request.
126+
127+
In the [developer portal](https://devbox.microsoft.com), select **Support** from the **More actions** menu on a dev box tile to open the **Dev box support** pane. In the pane, you can:
128+
129+
- Select the **troubleshoot your dev box** link to troubleshoot dev box issues. For more information, see [Resolve connectivity issues with the Troubleshoot and Repair tool](how-to-troubleshoot-repair-dev-box.md).
130+
- Select **Copy support details** to copy details about your dev box and an **Issue ID** that you can give to your admin or support team.
131+
- Select the **contact Azure help + support** link to open the Azure portal **Help + support** page for your dev box project. On the **Help + support** page, you can select **Troubleshoot** under **Actions** to walk through troubleshooting steps, or select **Create a support request** to walk through creating a support request.
132+
133+
If you file a support request, include:
134+
135+
- A detailed description of the problem.
136+
- The time the issue occurred.
137+
- Impacted users.
138+
- Other information about your dev box and remote session if available, such as **Activity ID**.
139+
140+
### Get dev box connection and security information
141+
142+
If you can access your dev box, you can get security and connection information by selecting the corresponding icon on the top connection bar during your session.
143+
144+
:::image type="content" source="media/how-to-resolve-dev-box-connectivity-issues/troubleshooting-connection-bar.png" alt-text="Screenshot that shows the Remote Desktop connection bar.":::
145+
146+
To see connection details such as **Timestamp** and **Activity ID**, select **See details** in the connection dialog box. Copy the connection details by pressing **Ctrl**+**C**, and close the dialog by selecting **OK**.
147+
148+
:::image type="content" source="media/how-to-resolve-dev-box-connectivity-issues/troubleshooting-connection-information-dialog.png" alt-text="Screenshot that shows the Troubleshooting connection information dialog box.":::
124149

125150
## Related content
126-
- [Troubleshoot and resolve dev box Remote Desktop connectivity issues](how-to-troubleshoot-repair-dev-box.md)
151+
152+
- [Resolve connectivity issues with the Troubleshoot and Repair tool](how-to-troubleshoot-repair-dev-box.md)
153+
- [Troubleshoot known Remote Desktop connectivity issues with dev boxes](how-to-troubleshoot-remote-desktop-connectivity.md)
127154
- [Get support for Microsoft Dev Box](how-to-get-help.md)
-2.42 KB
Loading
18.2 KB
Loading

0 commit comments

Comments
 (0)