SOLVED

WVD Portal unable to query sessions

%3CLINGO-SUB%20id%3D%22lingo-sub-1433087%22%20slang%3D%22en-US%22%3EWVD%20Portal%20unable%20to%20query%20sessions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1433087%22%20slang%3D%22en-US%22%3E%3CP%3ESo%2C%20I%20extended%20my%20host%20pool%2C%20and%20for%20any%20of%20the%20systems%20now%2C%20when%20I%20click%20on%20the%20session%20host%2C%20I%20get%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%22There%20was%20an%20error%20retrieving%20the%20user%20sessions.%20Please%20refresh%20the%20page%20and%20try%20again%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20can%20log%20on%20to%20the%20WVD%20devices%20fine%2C%20they%20are%20operating%20correctly.%20And%20Powershell%20looks%20like%20it's%20happy.%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-AzWvdUserSession%20-HostPoolName%20WVDPool%20-ResourceGroupName%20WVD-Desktops-rg%7Cselect%20activedirectoryusername%2C%20applicationtype%2C%20createtime%2C%20name%2C%20userprincipalname%7C%20ft%20-auto%0A%0A%0AActiveDirectoryUserName%20CreateTime%20%20%20%20%20%20%20%20%20%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20UserPrincipalName%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A-----------------------%20----------%20%20%20%20%20%20%20%20%20%20----%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-----------------%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0ADOMAIN%5Cuser%20%20%20%20%20%20%20%20%20%20%20%20%2002%2F06%2F2020%2008%3A51%3A30%20WVDPool%2FWVD-2.xxx.yyy%2F3%20%20%20%20%20%20user%40domain.com%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3EIt%20just%20appears%20the%20portal%20is%20having%20difficulty.%20Any%20suggestions%20where%20to%20look%20to%20resolve%20this%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAlso%2C%20despite%20having%20enabled%20full%20diagnostics%20on%20host%20pool%2C%20DAG%20and%20workspace%2C%20my%20logs%20appear%20to%20be%20empty.%20Why%20would%20that%20be%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-RdsDiagnosticActivities%20-TenantName%20xxx%0AGet-RdsDiagnosticActivities%20%3A%20There%20were%20no%20activities%20found.%0A%0AGet-AzWvdSessionHost%20-HostPoolName%20WVDPool%20-ResourceGroupName%20WVD-Desktops-rg%7Cselect%20name%2C%20osversion%2C%20lastheartbeat%2C%20lastupdatetime%2C%20status%20%7Cft%20-auto%0A%0AName%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OSVersion%20%20LastHeartBeat%20%20%20%20%20%20%20LastUpdateTime%20%20%20%20%20%20Status%0A----%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20---------%20%20-------------%20%20%20%20%20%20%20--------------%20%20%20%20%20%20------%0AWVDPool%2FWVD-2.xxx.yyy%2010.0.18363%2002%2F06%2F2020%2008%3A33%3A54%2001%2F06%2F2020%2016%3A05%3A56%20Available%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20advice%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1434835%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20Portal%20unable%20to%20query%20sessions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1434835%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F683671%22%20target%3D%22_blank%22%3E%40andyinv%3C%2FA%3E%26nbsp%3BWe%20have%20an%20active%20bug%20where%20for%20some%20deployments%2C%20user%20sessions%20are%20not%20displayed%20on%20the%20portal.%20We%20are%20unable%20to%20repro%20it%20-%20so%20if%20you%20can%20let%20me%20know%20what%20your%20deployment%20looks%20like%20it%20will%20be%20highly%20appreciated.%20I%20am%20looking%20for%20whether%20the%20VMs%2C%20WVD%20objects%20are%20in%20the%20same%20subscription%2C%20resource%20group%20and%20location.%20If%20not%2C%20what%20are%20the%20differences.%3C%2FP%3E%0A%3CP%3ESecondly%2C%20Get-Rds****%20cmdlets%20cannot%20be%20used%20with%20ARM%20environments.%20You%20have%20to%20use%20LogAnalytics%20to%20view%20the%20diagnostics%20data.%20We%20do%20not%20control%20when%20the%20data%20will%20be%20populated%20-%20we%20pipe%20it%20to%20LogAnalytics%20and%20we%20have%20seen%20sometimes%20that%20the%20very%20first%20time%20you%20are%20trying%20to%20access%20data%20in%20the%20tables%2C%20it%20could%20take%2024%20hours%20to%20populate.%20After%20that%20it%20should%20an%20almost%20immediate%20update.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1435412%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20Portal%20unable%20to%20query%20sessions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435412%22%20slang%3D%22en-US%22%3EThanks%20Pavithra%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20had%20previously%20worked%20fine%20when%20I%20deployed%20two%20VMs.%20I%20subsequently%20deleted%20one%20and%20updated%20the%20image%2C%20and%20then%20deployed%20the%20new%20image%20to%20the%20pool%20with%20a%20further%20one%20VM.%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20resources%20are%20in%20UK%20South%20and%20WVD%20metadata%20is%20in%20West%20US.%20Everything%20is%20in%20the%20same%20subscription.%20The%20infrastructure%20(domain%20controllers)%20are%20in%20one%20resource%20group%2C%20and%20the%20WVDs%20are%20in%20another%20(connecting%20to%20the%20network%20in%20the%20infrastructure%20rg).%20This%20worked%20fine%2C%20the%20only%20change%20that%20happened%20was%20after%20I%20had%20removed%20one%20of%20the%20hosts%20(I%20think).%3CBR%20%2F%3E%3CBR%20%2F%3EWould%20be%20very%20happy%20to%20session-share%20with%20one%20of%20your%20techs%20if%20that%20can%20help%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1888496%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20Portal%20unable%20to%20query%20sessions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1888496%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20an%20update%20on%20this%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20also%20seeing%20this%20exact%20same%20behavior%20with%20newly%20deployed%20host%20pools.%26nbsp%3B%20All%20resources%20are%20located%20in%20US%20West.%26nbsp%3B%20The%20Host%20Pool%20and%20Application%20Groups%20are%20in%20the%20same%20Resource%20Group.%26nbsp%3B%20The%20Workspace%20is%20in%20a%20different%20Resource%20group%20and%20each%20individual%20session%20host%20is%20in%20a%20separate%20resource%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPulling%20up%20the%20Users%20and%20searching%20on%20each%20one%20correctly%20shows%20the%20sessions%20connected%20to.%26nbsp%3B%20Pulling%20up%20the%20session%20host%20generates%20a%20Failed%20to%20retrieve%20user%20sessions%20error%20message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERespectfully.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1890967%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20Portal%20unable%20to%20query%20sessions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1890967%22%20slang%3D%22en-US%22%3E%3CP%3Eare%20your%20machines%20set%20up%20tp%20use%20a%20proxy%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

So, I extended my host pool, and for any of the systems now, when I click on the session host, I get:

 

"There was an error retrieving the user sessions. Please refresh the page and try again"

 

I can log on to the WVD devices fine, they are operating correctly. And Powershell looks like it's happy.

Get-AzWvdUserSession -HostPoolName WVDPool -ResourceGroupName WVD-Desktops-rg|select activedirectoryusername, applicationtype, createtime, name, userprincipalname| ft -auto


ActiveDirectoryUserName CreateTime          Name                         UserPrincipalName                      
----------------------- ----------          ----                         -----------------                      
DOMAIN\user             02/06/2020 08:51:30 WVDPool/WVD-2.xxx.yyy/3      user@domain.com

It just appears the portal is having difficulty. Any suggestions where to look to resolve this?

 

Also, despite having enabled full diagnostics on host pool, DAG and workspace, my logs appear to be empty. Why would that be?

 

Get-RdsDiagnosticActivities -TenantName xxx
Get-RdsDiagnosticActivities : There were no activities found.

Get-AzWvdSessionHost -HostPoolName WVDPool -ResourceGroupName WVD-Desktops-rg|select name, osversion, lastheartbeat, lastupdatetime, status |ft -auto

Name                  OSVersion  LastHeartBeat       LastUpdateTime      Status
----                  ---------  -------------       --------------      ------
WVDPool/WVD-2.xxx.yyy 10.0.18363 02/06/2020 08:33:54 01/06/2020 16:05:56 Available

 

Thanks for any advice

 

4 Replies
Highlighted
Best Response confirmed by Eva Seydl (Microsoft)
Solution

@andyinv We have an active bug where for some deployments, user sessions are not displayed on the portal. We are unable to repro it - so if you can let me know what your deployment looks like it will be highly appreciated. I am looking for whether the VMs, WVD objects are in the same subscription, resource group and location. If not, what are the differences.

Secondly, Get-Rds**** cmdlets cannot be used with ARM environments. You have to use LogAnalytics to view the diagnostics data. We do not control when the data will be populated - we pipe it to LogAnalytics and we have seen sometimes that the very first time you are trying to access data in the tables, it could take 24 hours to populate. After that it should an almost immediate update.

Highlighted
Thanks Pavithra

It had previously worked fine when I deployed two VMs. I subsequently deleted one and updated the image, and then deployed the new image to the pool with a further one VM.

All resources are in UK South and WVD metadata is in West US. Everything is in the same subscription. The infrastructure (domain controllers) are in one resource group, and the WVDs are in another (connecting to the network in the infrastructure rg). This worked fine, the only change that happened was after I had removed one of the hosts (I think).

Would be very happy to session-share with one of your techs if that can help?
Highlighted

@Pavithra Thiruvengadam 

 

Is there an update on this issue?

 

We are also seeing this exact same behavior with newly deployed host pools.  All resources are located in US West.  The Host Pool and Application Groups are in the same Resource Group.  The Workspace is in a different Resource group and each individual session host is in a separate resource group.

 

Pulling up the Users and searching on each one correctly shows the sessions connected to.  Pulling up the session host generates a Failed to retrieve user sessions error message.

 

Respectfully.

 

 

Highlighted

are your machines set up to use a proxy?