Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
You will have to update it fist to Windows Server 2016 or 2019 since the 2019 Windows server is not supported from the 2012 R2. For more information, you can check https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/migrate-rds-role-services
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.