Troubleshooting: If you configure the Deployment on a RDS server that includes only the RD Session Host role and the RD Licensing role, you will receive this error. you should run gpedit.msc on RD server to configure the Deployment on a RDS server that includes only the RD Session Host role and the RD Licensing role.
You will use Configure the Deployment for configuring RD license on a RD server includes the RD Connection Broker role.