Hello @MGUENDOUZI ,
Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
You might get the following error message when you initiate a remote desktop connection to your VM: "Your account is configured to prevent you from using this device. For more info, contact your system administrator."
Recommendation:
Verify that you've configured Azure RBAC policies for the VM that grant the user the Virtual Machine Administrator Login or Virtual Machine User Login role.
Hope this helps!
--please don't forget to upvote and accept as answer if the reply is helpful--