We noticed that you rated an answer as not helpful. I have provided an answer with the relevant details to make this a positive experience for you. Thanks!
We value your feedback. If my answer is helpful, would you be so kind to re-evaluate your feedback, accept my answer and upvote the same please?
Answer:
By default, only SSH connections are allowed into Linux VMs deployed in Azure. Because this VM is going to be a web server, you need to open port 80 from the internet. Use the az vm open-port command to open the desired port.
You can refer to this document for details https://learn.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-lamp-stack
If I have answered your query, please click "Accept as answer" as a token of appreciation