Hi,
It seems the NSG rules are not set correctly and also check the event logs on the Server it should you details on the error, also check this https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection
Hope this helps. JS
== Please Accept the answer if the information helped you. This will help us and others in the community as well.