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.

1.png

2.png

 

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

12.png

13.png

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

NewVM

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.

NewResourceGroup.png

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:

14.png

Choose  Protocol TCP and enter Destination Port as 80 and Save

15.png

Click Save.

16.png

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:

    Great

    Liked by 1 person

  2. Krishnanand says:

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

    Like

Leave a comment