Hi,
On server 2019 if you have the RD Gateway configured to allow maximum supported (the default), you are effectively setting it to unlimited. In pre-2012 versions there was limit of 250 for Standard vs Unlimited for Datacenter. Of course the RD Gateway needs to have enough CPU/RAM/etc. to handle the load. Depending on your specific needs you could consider having multiple RD Gateway servers in load-balanced configuration. In Azure you would have load balance in front of the RD Gateways. One benefit of having multiple RD Gateways in load-balanced configuration is the ability to better handle servicing and/or failures.
You can follow below steps to limit the maximum number of simultaneous connections through a Remote Desktop Gateway server.
- On the RD Gateway server, open Server Manager ->Administrative Tools ->Remote Desktop Services ->Remote Desktop Gateway Manager.
- In the Remote Desktop Gateway Manager console tree, right-click the local RD Gateway server, and then click Properties.
- In the Properties dialog box for the RD Gateway server, on the General tab, under Maximum Connections, do one of the following:
• To set a limit for the maximum number of simultaneous connections, check Limit maximum allowed simultaneous connections to, and then specify the number of allowable connections.
• To set no limit, check Allow the maximum supported simultaneous connections. This is the default option.
• To prevent new connections from being made between clients and network resources through RD Gateway, click Disable new connections. If you select this option, only new connection attempts will be rejected. Current connections will not be ended by RD Gateway.
Also, please refer to below article of hardware configuration for RDS.
RDS Hardware Sizing and Capacity Planning Guidance.
https://learn.microsoft.com/en-us/archive/blogs/iftekhar/rds-hardware-sizing-and-capacity-planning-guidance
Hope above information helps.
Thanks,
Eleven