for external access to work, you have to create inbound rules in the network Security Group
You need to create a rule on NSG, for ports you want to Publish to Internet:
Reference : https://learn.microsoft.com/en-us/azure/virtual-network/manage-network-security-group
Get in touch if you need more help with this issue.
--please don't forget to "[Accept the answer]" if the reply is helpful--