Hello @Javier Acebo ,
Thanks for reaching out.
If you can successfully ping the IP address but not the domain, DNS may be incorrectly configured. Make sure that you've configured the managed domain DNS servers for the virtual network.
Here are some guidance for troubleshooting connectivity issues for domain-join . Hope this helps.
------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.