Hi @Michael Hengeli ,
you should check if a Network Security Group (NSG) is associated with your VM or/and Azure vNet Subnet.
If so, appropriate inbound access rules must be defined for the ports.
https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten