Configure IIS Server On Azure Virtual Machine: Windows Server

Azure Virtual Machines let you deploy a wide range of computing solutions in an agile way. Deploy a virtual machine nearly instantly and pay by the minute. Scale from one to thousands of virtual machine instances. Built in virtual networking and load balancing available.

Prerequisites

You will learn

  • Create Windows Server 2012 R2 Virtual Machine
  • Configure IIS Server
  • Host Web page on Azure Virtual Machine

Create Virtual Machine

Step 1:
Navigate to Azure Classic Portal & sign in using Azure Subscription credentials.

Step 2: Select “Virtual Machine” option & click on “CREATE A VIRTUAL MACHINE” (if no VM available).

New, Compute, Virtual Machine, Quick Create, then enter vm details

create

Enter VM details like DNS Name, Image, Size, Username & Password, Region,

details

Wait for a few minutes to configure all vm options.

options
Step 3: Select VM & click on “Connect” option,

Connect

One .rdp file will download,

download

Click on Connect button,

Connect

Enter VM Username & Password,
login

Windows certificate will open & click on Yes button.

Certificate

Windows 2012 R2 Datacenter ready,

Server

Configure IIS Server

Step 4: Start Server Manager,

Manager

Select “Add roles and features” option,

option

option

Choose first option “Role-based or feature-based installation”

option

option

In Server Roles please add “Application Server” & Web Server(IIS)

add

add

add

add

add

add

Choose IIS 6 options

add

Wait for Installation

Installation

Close the window

Close

Step 5: Open notepad & add below codes:

  1. <html>  
  2. <title> Microsoft Azure </title>  
  3.   
  4. <body>  
  5.     <h1>Azure VM - Windows Server 2012 </h1> </body>  
  6.   
  7. </html>  
Save it inside wwwroot folder,

C:\inetpub\wwwroot
C:\inetpub\wwwroot\index.html

Change Save as type to “All Files”.

Save

Step 6: Now again open Management Portal & select VM’s endpoints tab

open

Click on ADD button

ADD

ADD

Choose “HTTP” from dropdown menu

menu

Now run the DNS name in another browser or in another tab.

browser

browser

Congratulations! You have successfully configured IIS on Microsoft Azure.