Host a Static HTML page on Azure VM and Allow Access from Internet.

Anvesh
SilentTech
Published in
3 min readFeb 12, 2024

Prerequisites
Create a VM on Azure: - https://medium.com/silenttech/create-a-virtual-machine-in-azure-7fa4af54d622
Install IIS on Azure VM: https://medium.com/silenttech/install-iis-on-azure-virtual-machine-3d739ee13928

By now, you have an Azure VM with IIS Installed and you were able to browse the default web page.

I just used a basic HTML index page and pasted it on the Azure VM.

Open IIS on the VM and right click sites and add a website.

Hit browse, you should be seeing your HTML Content

Note: - your HTML name should be index.html if not you need to rename it or add your startup file name in default document section on your website in IIS.

Now let's try to connect from our base laptop.

ohh! we cannot access it. we could be able to access port 80 but not 85.

Let’s add an In-bound security rule in ‘Networking’ tab.

Still unable to access. Let’s add an In-bound port from VM.

Navigate to VM and open Control Panel → Network and Internet.

Hit Next, Next and give a Name and Hit Finish. You should be seeing it first in the list, if not hit refresh.

Now add an out-bound rule, with same port and 85, change the action to ‘Allow’ default it is block.

Now try from the browser, if you can access the Port. YES!! WE CAN.

--

--

Anvesh
SilentTech

Sr. SW Engineer/ Blogger 🔔Follow me to support my journey on Medium/ 🌐LinkedIn: http://www.linkedin.com/in/anveshsalla