Hello there,
You can check the RD Licensing configuration by using Server Manager and RD Licensing Manager. Verify the following:
The RD Licensing role is installed and the license server is activated.
The license server has a client access license (CAL) for each user and device that can connect to RDS.
This article help you troubleshoot the "No licenses available" error in a deployment that includes an Remote Desktop Session Host (RDSH) server and a Remote Desktop Licensing server.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--