Hi @Adão Braga ,
maybe this helps with the connection issues:
Troubleshoot SSH connections to an Azure Linux VM that fails, errors out, or is refused
NSG inbound rule: Check security rules
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten