Sorry to hear you are experiencing disconnects to your Azure VM when connecting via RDP. I recommend you check this Q&A thread which has some possible solutions to your problem. This issue was reported on Windows Server 2022 but the same fixes could try to be applied.
If this doesn't resolve your problem please let me know and we can work with you directly to investigate further.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!