Windows Virtual Desktop – Troubleshoot a WVD session host that is unavailable

Scenario

In a Windows Virtual Desktop (WVD) installation with multiple session hosts, one (or more) of the session hosts can be shown as “unavailable” in the Azure portal. We will need to troubleshoot the problem to detect the reason for this.

Troubleshooting

Whenever you find the SH showing as “Unavailable” state, please go through this MS Article as it describes the same issue and you can follow the step by step process.

You can also follow the below steps to check the session host from your end and troubleshoot based on the event IDs:

  • Event ID 3277:
    • It talks about the registration and to fix this issue, you have to re-register the SH in the host pool to fix this issue.
    • You can follow this article to re-register the SH to the Hostpool.
  • Event ID 3702:
    • Source WVD-Agent.
    • This event ID gives you a specific set of URLs you need to whitelist for your virtual machines.
    • These URLs are specific to the region in which the virtual machines are deployed and procedure needs to be repeated for virtual machines deployed in different regions.
    • For example please take a look at the below screenshot:

Event ID 3703:

  • This talks about the Session Host is not able to reach the RdBroker.
  • For example please take a look at the below screenshot:
  • This means your SH is not able to reach the RdGateway and in this situation, you will get the Unavailable state.
  • You can also verify the communication between the RdGateway and SH by doing the below steps:
  • Please login to SH and open the cmd
  • Please run this NSlookup rdbroker.wvd.microsoft.com, it should not be resolved however, if it gets resolved, please do the below:
  • Open registry and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent
  • Note values of BrokerURI and BrokerURLGlobal
  • Now, open browser and go to:
    • https://”BrokerURI”/api/health
    • https://”BrokerURIGlobal”/api/health
  • If network is blocking the pages won’t load, for example:
  • You need to confirm if the below URLs are reachable from the VDI or not. If not please check with your Network team.
*.wvd.microsoft.com443Service trafficWindowsVirtualDesktop
mrsglobalsteus2prod.blob.core.windows.net443Agent and SXS stack updatesAzureCloud
*.core.windows.net443Agent trafficAzureCloud
*.servicebus.windows.net443Agent trafficAzureCloud
gcs.prod.monitoring.core.windows.net443Agent trafficAzureCloud
catalogartifact.azureedge.net443Azure MarketplaceAzureCloud
kms.core.windows.net1688Windows ActivationInternet
wvdportalstorageblob.blob.core.windows.net443Azure portal supportAzureCloud
169.254.169.25480Azure Instance Metadata service endpointN/A
168.63.129.1680Session host health monitoringN/A

Thank you for reading! Be sure to share this post if you found it helpful and don’t hesitate to chat with me about it!

This post was first published on cuttingedge.gr by static

Leave a Comment