Session count discrepancy

%3CLINGO-SUB%20id%3D%22lingo-sub-2282725%22%20slang%3D%22en-US%22%3ESession%20count%20discrepancy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2282725%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20have%20a%20host%20pool%20with%20two%20sessions%20hosts.%26nbsp%3B%20They%20are%20set%20to%20a%20maximum%20limit%20of%204%20sessions%20each%20and%20depth-first.%3C%2FP%3E%3CP%3EA%20user%20with%20the%20same%20UPN%20and%20session%20number%20shows%20up%20twice%20in%20the%20session%20list.%26nbsp%3B%20Azure%20was%20counting%20this%20as%20two%20separate%20sessions.%26nbsp%3B%20Since%20there%20were%20two%20other%20users%20on%2C%20this%20added%20up%20to%204%20sessions%20and%20new%20connections%20went%20over%20to%20the%20other%20host.%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20at%20the%20Session%20Hosts%20view%20shows%20this%20machine%20has%203%20active%20sessions%20rather%20than%204%20so%20it%20does%20seem%20to%20know%20that%20one%20is%20duplicated.%3C%2FP%3E%3CP%3EWould%20anyone%20know%20what%20would%20cause%20the%20same%20user%20to%20show%20up%20as%20two%20different%20sessions%3F%26nbsp%3B%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2282725%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Esession%20host%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewindowsvirtualdesktops%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWVD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2283158%22%20slang%3D%22en-US%22%3ERe%3A%20Session%20count%20discrepancy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2283158%22%20slang%3D%22en-US%22%3EThere%20is%20a%20Group%20policy%20to%20limit%20users%20to%20single%20session.%20If%20you%20don%E2%80%99t%20set%20what%20can%20happen%20when%20there%20window%20closes%20and%20they%20reconnect%20it%20connects%20as%20a%20separate%20second%20session.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2293502%22%20slang%3D%22en-US%22%3ERe%3A%20Session%20count%20discrepancy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2293502%22%20slang%3D%22en-US%22%3EThanks%20Steven.%20A%20few%20months%20ago%20I%20asked%20about%20that%20specific%20GPO%20when%20we%20were%20first%20setting%20up%20the%20host%20pools%20with%20a%20Azure%20consulting%20firm%20(a%20leading%20Azure%20services%20firm)%20and%20they%20said%20it%20was%20not%20needed%20in%20WVD%20because%20the%20load%20balancer%20will%20tie%20session%20state%20into%20an%20individual%20pool%20allocation.%20I%20tested%20this%20with%20logging%20into%20a%20VM%20via%20rdweb%2C%20closing%20out%20the%20browser%2C%20verifying%20that%20I%20show%20up%20as%20disconnected%20in%20Azure%2C%20starting%20up%20the%20browser%20and%20logging%20into%20rdweb%20and%20the%20VM%20again.%20It%20connected%20me%20back%20to%20my%20previous%20session.%20In%20the%20list%20of%20users%2C%20it%20showed%20this%20one%20user%20as%20having%20the%20same%20session%20number%20(although%20listed%20twice)%20so%20I%20am%20wondering%20if%20this%20is%20an%20issue%20with%20Azure%20reporting%20it%20incorrectly%20or%20if%20there%20really%20was%20something%20up%20with%20the%20user%20being%20connected%20to%20a%20different%20session.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2293585%22%20slang%3D%22en-US%22%3ERe%3A%20Session%20count%20discrepancy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2293585%22%20slang%3D%22en-US%22%3EHi%2C%20I%20find%20found%20in%20my%20testing%20stage%20that%20without%20it%20it%20was%20a%20bit%20of%20a%20lottery%20as%20to%20how%20it%20responded%20and%20the%20gpo%20just%20makes%20it%20work%20as%20you%20want%20so%20for%20how%20difficult%20it%20is%20to%20enable%20I%20don%E2%80%99t%20see%20why%20you%20just%20would%20t%20do%20it%20rather%20leave%20it%20to%20chance.%20Like%20wise%20temp%20profiles%20are%20a%20lottery%20and%20they%20give%20you%20an%20option%20to%20not%20login%20with%20a%20temp%20which%20makes%20more%20sense%20from%20a%20service%20side%20to%20stop%20as%20when%20a%20user%20logs%20on%20with%20a%20temp%20it%20causes%20more%20damage%20long%20term%20than%20if%20they%20never%20get%20on.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

We have a host pool with two sessions hosts.  They are set to a maximum limit of 4 sessions each and depth-first.

A user with the same UPN and session number shows up twice in the session list.  Azure was counting this as two separate sessions.  Since there were two other users on, this added up to 4 sessions and new connections went over to the other host. 

Looking at the Session Hosts view shows this machine has 3 active sessions rather than 4 so it does seem to know that one is duplicated.

Would anyone know what would cause the same user to show up as two different sessions?  Thanks.

 

10 Replies
There is a Group policy to limit users to single session. If you don’t set what can happen when there window closes and they reconnect it connects as a separate second session.
Thanks Steven. A few months ago I asked about that specific GPO when we were first setting up the host pools with a Azure consulting firm (a leading Azure services firm) and they said it was not needed in WVD because the load balancer will tie session state into an individual pool allocation. I tested this with logging into a VM via rdweb, closing out the browser, verifying that I show up as disconnected in Azure, starting up the browser and logging into rdweb and the VM again. It connected me back to my previous session. In the list of users, it showed this one user as having the same session number (although listed twice) so I am wondering if this is an issue with Azure reporting it incorrectly or if there really was something up with the user being connected to a different session.
Hi, I find found in my testing stage that without it it was a bit of a lottery as to how it responded and the gpo just makes it work as you want so for how difficult it is to enable I don’t see why you just would t do it rather leave it to chance. Like wise temp profiles are a lottery and they give you an option to not login with a temp which makes more sense from a service side to stop as when a user logs on with a temp it causes more damage long term than if they never get on.
You should have come to my company :face_with_tears_of_joy:
Hi Steven, my last reply did not fully include what I was going to do - so sorry for not including that. I will be looking to add the "Restrict Remote desktop services users to a single remote desktop services session" GPO but I was wondering about the same session number issue. It seems the temp profile you mention could definitely be the reason for that.
It’s all a bit of belt and braces and another thing that may also help is forcing user log offs when either not active or disconnected after a period of time which may help the issues but also keeps costs down as you won’t have as many seats taken which in turn will mean vm’s go offline more frequently and even less likely to have the session issues. It’s not a perfect solution still so many bugs but there are things you can do to make the service desk quieter.
Oh yes, totally agree. We have session timeouts in place and scaling is a work in progress.
How do you mean work in progress, there is a very good script out there not Microsoft’s that I have used with great success (not my script not taking credit) but it’s on a few forums/how too’s
We haven't gotten into automating this with scripts yet, though that is the very next step we're going to look at. We were working off of this doc: https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script#how-the-scaling-tool-wo... and just got all the VM images, extensions, and a VMSS into place and tested successfully. Could you share the script you have used? Thank you.
https://github.com/tsrob50/WVD-Public/blob/master/StartStop-HostPoolVMs

Pretty straight forward just set working hrs and how many available seats you want peak off peak.