I use "flask run -p 80" to start a python web api in Azure ubantu 22.
I use curl to test it successfully in VM
I also add security rule for azure NSG, it test successfully.

But I can not access the flask 80 portal use my local browser. Please help to advice what i need to do next? Thanks so much!

Check if your application is listening on the correct
port 8080for the foreign Address0.0.0.0:*by using below command. If not, you could find what's IP of the application consumed.Output:
When I try with
8080, it's not working, but it's working with 80 as below.NSG Rules
Make sure to add the same port in the
NSGas the port that is listening on the VMWhen I try to access the application hosted on the Ubuntu VM using the
public IPwithport 80, it starts working as below.If still not working disable the local firewall on
Ubuntu VMby using the command below.