Hi @Anonymous ,
Did you setup NSG and allow access to the vm from Internet to port 80 for example?
Private IP can be only routed in the same network or VPN connection so if you want to access nginx from your PC via public IP please check if you have proper firewall rules in place.
Please upvote or accept as answer if it helped.