You may face this error if you didn't allow port 80 in your VM. Your browser is trying to connect the web page at port no. 80. But your VM is not allowing inbound traffic. You need to allow the port no. 80 to solve this error.
$ az vm open-port -g MyResourceGroup -n MyVm --port 80 --priority 100