How to register a softphone from an external network to a Azure hosted Asterisk?

I’m not very good at networking stuff, but I just need some problem conformation and a possible solution. I have asterisk installed on an Azure VM, with an external ip of 52.XXX.X.XX (something unique), but the command ifconfig in the ssh terminal tells me my address is 10.0.0.4 or something. When trying to connect a soft phone to the unique external address, I get no response from asterisk and a fail from the soft phone. I tried listening to the 5060 udp port but I couldn’t see anything getting through. I did some research then and figured out that the information from the packets from the external soft phone are most likely just getting dropped when they hit the router of the cloud server because they don’t know which host to go to. Am I getting this right? What steps do I have to take to be able to successfully register my soft phone to the Azure vm Asterisk setup?

The wonders of google…