Before configuring the Remote Desktop Gateway, ensure that the following pre-requisites are met:
Windows Server 2012 R2 or Windows Server 2016 is installed.
Microsoft Remote Desktop Gateway role is configured.