How to disable login for one server

Brass Contributor

Quick question: How do i disable logon for just one of many servers in a host pool? I tried Change Logon /Disable, but users are still getting redirected to the disabled server, only to get the error message "Remote logins disabled" ... Surely there must be a simple solution i have missed?

8 Replies

@Mtollex70 

 

Hi,

 

are you making use of the WVD azure app at all? 

 

I find when i disable new sessions and de-allocate the machine users are not re directed to the drained resource. 

@WillSomerville Yes of course, when the host is deallocated, no one is redirected to that host. But i want to be able to have the machine running, but still disabled for logon.. Like you can do in a "regular" Remote Desktop deployment. 

@Mtollex70 

 

Yeah i see your issue i suspect is it because the PAAS portion of the WVD can still communicate with the VM and its so its not looking for a variable of sorts to remove it as an active member of the pool. 

 

Are you also running the WVD scaling powershell scripts? The variables on this could be causing it to route as you might be exceeding the CPU per session count on the VMs which are available in the pool 

 

I have done some testing with my pools and have been able to take hosts out of my pools and it still allow me to log in without issue.  Below is the agent version in use on my pools. 

 

clipboard_image_0.png

@WillSomerville No scaling scrips yet. As a "workaround" i too have taken machines out of the pool if i dont want anyone connecting, but its a hazzle to join them back in. Just wondered if there was a simple command or something to quickly disable / enable logons to a server in a WVD hostpool. 

@Mtollex70 

Hmm its odd for sure so just to clarify if you have the below set to no you still get the error right?

 

clipboard_image_0.png

 

The only thing that could possibly be a factor which i would deem as unlikely is the Remote desktop App version. Im on version 1.2.535.19507 (x64) which is what my users are on. 

 

I have not tried this via the web if its something on the client side then it might be a case of having to update the client. 

 

Another note is my RD gateways are in Europe west. do you know what gateway you are connecting too? I cant imagine this being a factor however i know that it appears to be working form this gateway. I had the issues when i was connected to the gateway services in the US.

 

Cheers

Will 

@WillSomerville THERE it is! A quick way of disabling logon that i have missed :) But where in the portal is this? Is this the preview management console for WVD? I dont have that published, i tried an early version that did not work, but will try again just to get this feature :)

@Mtollex70 

 

Thats correct it is the WVD management portal it is a break fix as such until the actual portal is released sometime in the new year :) 

 

https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-management-ux/deploy

 

The above link is where i went to deploy the WVD portal and this worked without issue. 

 

just make sure that any users you want to be able to view this are added to the application that you create in enterprise applications.

 

Cheers

Will 

Why don't you just disable new remote sessions via powershell?

Set-RdsSessionHost -TenantName "TentantName" -HostPoolName "HostPoolName" -AllowNewSession $false -Name "SessionHostname"