If you followed the article: Setting up an RDS farm under Windows 2012R2/2016, the client connection configuration is done using a Round Robin on the DNS.
What happens if the server returned by the DNS is offline?
The connection will not succeed and an error message is displayed.
Solution: Establish a connection through the Broker service
To solve the round robin DNS connection problem, the connection must be established directly on the broker.
If the Remote Desktop Connect client is configured with the broker’s address, it will not work, the client will try to log on directly to the broker server itself.
Make the changes below:
use redirection server name:i:0
Replace with :
use redirection server name:i:1
loadbalanceinfo:s:tsv://MS Terminal Services Plugin.1.NAME_OF_THE_COLLECTION
Enter the credentials and validate the security messages on the certificates.
The connection is established, in the banner we see that the connection is established on the broker 1. Open a command window (cmd) and enter hostname 2, the name of the server that is displayed is a remote desktop session host.