Azure VM – Configure IIS and Expose

After setting up VM the next important thing you may need to do is Enabling the IIS in Windows Server and provision it in Azure Portal to access it from anywhere.

This article will help you to achieve it.

Enable IIS in VM Server

The below screen shots will help you to configure IIS in VM Server.















Installing IIS Features on Windows 7

The following are the steps to install IIS including HTTP activation in VM Server

  1. On the Start menu, choose Control Panel, and then choose Programs.
  2. Under Programs and Features, choose Turn Windows features on or off.
  3. In the Windows features list, expand Internet Information Services, and then expand World Wide Web Services.
  4. Expand Application Development Features, and select the following features:
    • .NET Extensibility
    • ASP.NET
    • ISAPI Extensions
    • ISAPI Filters
  5. Expand Security, and then select the following features:
    • Request Filtering
    • Windows Authentication
  6. Expand Common HTTP Features, and then select the Static Content feature.
  7. To install Internet Information Service (IIS) Manager, under Internet Information Services, expand Web Management Tools, and then selectIIS Management Console.This step is optional. You use Internet Information Service IIS Manager to manage local and remote web servers and sites.
  8. Choose the OK button to complete the installation.
  9. In the Windows features list, expand Microsoft .NET Framework, and then select Windows Communication Foundation HTTP Activation.
  10. To verify that the web server has been installed correctly, start your browser, and then type http://localhost in the address.The default web site opens and should display an IIS 7 image. If the IIS 7 image does not appear, then verify that you have configured static content on IIS, as described in step 6.

After configuring IIS in VM the next challenge would be to access the hosted sites in IIS from outside of VM.

Login to new Azure portal and choose VM


There are 2 options to create a new port either using an existing ‘Network Security Group’ and add an In-Bound Rule or create a new ‘Network Security Group’ and add new rule into it.

For creating a new rule choose Add +New option from portal as showed below.


After creating new ‘Network Security Group’ you need to create an Inbound Rule.ResourcrGroup2.png

Choose Inbound Security Rules from Settings and fill new port value as showed below:


Choose  Protocol TCP and enter Destination Port as 80 and Save


Click Save.


Now you have created the HTTP default port 80 allowing to VM as inbound rule.

Happy Programming



Technical Lead for Microsoft Technologies especially in Azure, ASP.Net and in Angular JS.

Posted in Azure
3 comments on “Azure VM – Configure IIS and Expose
  1. Sreeraj says:


    Liked by 1 person

  2. Krishnanand says:

    Excellent.Thanks for sharing the steps and the attention to detail.


Leave a Reply to Abraham John Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s