Hello @Christel Lopez ,
Microsoft provides a service allied Azure Bastion, that acts as a gateway between your cloud IaaS for VMs and the public connectivity. This removes the security concerns of exposing your Azure VMs to RDP or SSH vulnerabilities.
You can read more about it here:
https://learn.microsoft.com/en-us/azure/bastion/bastion-overview
Hope this helps,
Best regards,