Upgrading WVD agent stuck

Par Admin 1 Reputation point

Hey all,

I have 19 WVD's and 2 of them are stuck on the status "Upgrading". When I click on each from the portal it gives me an error 404. Is there an easy way to fix this?

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,317 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 17,507 Reputation points Microsoft Employee

    Error: VMs are stuck in Unavailable or Upgrading state
    Open a PowerShell window as an administrator and run the following cmdlet:

    Get-AzWvdSessionHost -ResourceGroupName <resourcegroupname> -HostPoolName <hostpoolname> | Select-Object *

    If the status listed for the session host or hosts in your host pool always says "Unavailable" or "Upgrading," the agent or stack didn't install successfully.

    To resolve this issue, reinstall the side-by-side stack:

    1. Open a command prompt as an administrator.
    2. Enter net stop RDAgentBootLoader.
    3. Go to Control Panel > Programs > Programs and Features.
    4. Uninstall the latest version of the Remote Desktop Services SxS Network Stack or the version listed in HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Terminal Server > WinStations under ReverseConnectListener.
    5. Open a console window as an administrator and go to Program Files > Microsoft RDInfra.
    6. Select the SxSStack component or run the msiexec /i SxsStack-.msi command to install the MSI.
    7. Restart your VM.
    8. Go back to the command prompt and run the qwinsta command.
    9. Verify that the stack component installed in step 6 says Listen next to it.
      -If so, enter net start RDAgentBootLoader in the command prompt and restart your VM.
      -If not, you will need to re-register your VM and reinstall the agent component.

    Reference article: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/virtual-desktop/troubleshoot-agent.md

    1 person found this answer helpful.
    0 comments No comments