Why port you opened on Azure is still blocked?

You can check your specific ports

nmap -sV -Pn -p 80,8080 192.168.1.0

If it says filtered then the port is open in the azure side but clocked on the server side.

You need to enable it with sudo ufw allow 8080