Hi @Ahmed Essam ,
if you want to connect to an Azure VM from the internet using a public IP you need at least one Network Security Group (NSG) associated with the VM or the subnet/vNet the VM is connected to.
Inside the NSG you need to allow inbound the port(s) you are using for nginx (should be ingres port 80 and 443 for nginx).
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten