Windows Virtual Desktop issues

Troubleshooting overview, feedback, and support for Azure Virtual Desktop

  • Article
  • 10/22/2021
  • 4 minutes to read
  • 12 contributors

Is this page helpful?

Yes No
Any additional feedback?

Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy.

Submit

Thank you.

In this article

Important

This content applies to Azure Virtual Desktop with Azure Resource Manager Azure Virtual Desktop objects. If you're using Azure Virtual Desktop [classic] without Azure Resource Manager objects, see this article.

This article provides an overview of the issues you may encounter when setting up an Azure Virtual Desktop environment and provides ways to resolve the issues.

Session host virtual machine configuration

  • Article
  • 11/02/2021
  • 13 minutes to read
  • 14 contributors

Is this page helpful?

Yes No
Any additional feedback?

Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy.

Submit

Thank you.

In this article

Important

This content applies to Azure Virtual Desktop with Azure Resource Manager Azure Virtual Desktop objects. If you're using Azure Virtual Desktop [classic] without Azure Resource Manager objects, see this article.

Use this article to troubleshoot issues you're having when configuring the Azure Virtual Desktop session host virtual machines [VMs].

Introduction

There could be many ways to perform AVD troubleshooting. However, I’m going to share my experience in this blog. These are random tips to troubleshoot AVD issues. The AVD Error codes are available in Microsoft documentation here.

What are the AVD Troubleshooting Options?

  • Azure Portal – Check whether VMs are up and Running
  • Try to run the Remote commands from Azure Portal -> Virtual Machines -> Operations -> Run Command.
  • Evaluate Group Policies from AD to check whether those policies are blocking access to the AVD Host Pool VM.
  • Confirm whether the user is assigned to appropriate AVD host pool application groups
  • PowerShell, PowerShell, and PowerShell
  • Event Logs – Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational
AVD Troubleshooting Options Tips Tricks – Azure Virtual Desktop

Oops, we couldn’t connect to “Session Desktop” – We couldn’t connect to the gateway because of an error. If this keeps happening, ask your admin or tech support for help. Reconnect / Cancel – “Can’t log in to HostPool” AVD Troubleshooting Tips.

What Are The Windows Virtual Desktop Issues?

As of this writing, Microsoft has created [and keeps updated] a troubleshooting page for Windows Virtual Desktop. Currently, it lists 18 issues - all of which can cause frustration for the end user— ranging from invalid tokens, to MSI exceptions, to connection not found. For each known issue, Microsoft also provides a solutions for fixing them.

Each issue requires multiple steps to be taken to resolve it. Some are:

  • Opening the Registry Editor
  • Checking log files for error IDs
  • Manually turning services on/off
  • Selecting and applying options
  • Restarting the VM
  • Increasing capacity of the VM

Some of the issues listed might not even be noticeable to the end user immediately, but cause a slow down or lag in the Windows Virtual Desktop environment. Errors or issues that are noticeable to the end user can cause them to experience significant delays, not be able to access programs properly, or not access their desktop at all.

This then causes inefficiencies as much time is wasted because the end user not only tries to figure out how to fix the problem, but also takes the distraction as an opportunity to go on their smartphone/social media account. According to some statistics, employees admit to spending more than 2 hours of their work day checking their phones and taking 23 minutes to recover from a distraction.

Employees in most organizations — after they realize that they can't fix the issue and are back from their distractions — will submit a Level 1 support ticket for a fix. While some of these can be fix by lower level support, others require more technical fixes or admin privileges that Level 1 does not have access to.

So IT now needs to confirm the error, search for a solution, implement the fix if it is a known issue, figure out a fix for an unknown issue, reboot the machine, and check for proper error resolution. Between Level 1 and 2 support, this drawn-out process results in lost time and money for the company from the affected employee and the IT staff. Even when Level 2 support gets the ticket, sees the issue, and knows the fix, they still need to manually perform it.

Introduction

One of the challenges of work from home is that people no longer have physical access to their work computers on-premises. This can either be employees who worked at a desk, teachers who had a computer in their classrooms, or students who need to access computers in a lab on campus.

End users simply want a familiar desktop environment to continue to work. Their own home computers are familiar and comfortable, but CSOs don't want them downloading content to their personal hard drives or unsanctioned cloud services.

Citrix and VMWare Horizon exist to meet some of these needs, but are complicated to set up and manage, and still tax the ISP circuit. Standing up a desktop virtualization environment is expensive and can take months to successfully implement.

Troubleshooting Tip — Windows Virtual Desktop [WVD]

I came across this nice debugging feature available in WVD. This is also helpful to record your scenario [start/stop] and send it to support for further analysis.

Scenario:

I have provisioned a WVD “personal desktop” HostPool, created a workspace, application group and added this user to the application group. Now I tried to login to this desktop from web based client.

  1. Point your browser to //rdweb.wvd.microsoft.com/arm/webclient
  2. Login as your Azure AD username and password.
  3. You will see the Desktops assigned to you. When you click on it, I was prompted with this error

4. I was looking for a way to debug this issue instead of contacting support. One of the fellow engineers told me to go to “About” section. You will find this at the top right section with 3 dots

5. Click on Start Recording.

6. Reproduce the issue

7. Stop the Recording. This gives us a trace log with more debug output.

8. Download this file on to your desktop.

9. You can view this file for further analysis or send it to one of the experts for further assistance. The error message clearly told me that this user I’m logging in as doesn’t have access to that particular VDI Desktop. It turned out for a direct assignment, you must assign the user to both the personal desktop host pool and a specific session host before they can connect to their personal desktop. If the user is only assigned to a host pool without a session host assignment, they won’t be able to access resources. I went to this page //docs.microsoft.com/en-us/azure/virtual-desktop/configure-host-pool-personal-desktop-assignment-type#configure-direct-assignment and executed this command to add the user to the session host.

Update-AzWvdSessionHost -HostPoolName -Name -ResourceGroupName -AssignedUser

After executing the above Powershell command, I was able to login to my personal VDI desktop successfully.

Troubleshooting overview, feedback, and support for Azure Virtual Desktop

[!IMPORTANT] This content applies to Azure Virtual Desktop with Azure Resource Manager Azure Virtual Desktop objects. If you're using Azure Virtual Desktop [classic] without Azure Resource Manager objects, see this article.

This article provides an overview of the issues you may encounter when setting up an Azure Virtual Desktop environment and provides ways to resolve the issues.

Troubleshoot deployment and connection issues

Azure Monitor for Windows Virtual Desktop is a dashboard built on Azure Monitor workbooks that can quickly troubleshoot and identify issues in your Windows Virtual Desktop environment for you. If you prefer working with Kusto queries, we recommend using the built-in diagnostic feature, Log Analytics, instead.

Video liên quan

Chủ Đề