DEV Community

Cover image for How to create a Windows Server install windows server (IIS role and management tools )on it.
EMMANUEL
EMMANUEL

Posted on

How to create a Windows Server install windows server (IIS role and management tools )on it.

Before we begin I would like to explain what a virtual machine is, creating and deploying windows web server is creating a virtual machine.A virtual machine (VM) is a software emulation of a computer system. It allows you to run an operating system (OS) on top of another OS.  
VMs are often used for testing software, as they provide a safe environment to experiment with different configurations. They can also be used to run legacy applications, or to provide a consistent environment for developers.  
There are two main types of VMs  
Process VMs allow you to run a single program in an isolated environment.  
System VMs emulate an entire computer system, allowing you to run a full OS.That being said lets look at the steps in creating the virtual machine.

Step 1
Go to azure portal and create an account(there's option for free account as well) and login to the account.

Login details

Step 2
when logged in, into the portal, go to 'search resources ,service and docs' and type virtual machine and hit the ENTER button on your keyboard, then click on the grayed outlined virtual machine and double click on it.

Search Resources Field

Step 3
Click on the 'Create' button to start creating a virtual machine, there are two 'Create' buttons, you can click on either of them ,then click on Azure virtual machine

Create button

virtual machine create button

Step 4
Enter the 'project details' ,which consist of the subscription and the resource group, choose your subscription and create a resource group and give it a name.

Project details

Step 5
Enter the 'Instance details" which consist of the name of the virtual machine, region, availability, sizes, image(in this case we are going to choose windows server because we are trying to install and deploy window server as our virtual machine) and other details.

Instance details

Instance details

Instance details

Step 6
Create Administrator account by creating a username and password to access the virtual machine.

Administrator account

Step 7
Choosing the right inbound port. Because we are creating windows server virtual machine we are going to choose http 80 and RDP 3389.

Inbound port

Step 8
Click on the 'Monitoring' to disable the boot diagnostics, then open the 'Tag' and fill in the details

Disabling Boot diagnostic

Tag

Step 9
Click on 'Review and create' and wait couple of seconds for the validation pass, go back to 'Basic' and check for recommended errors to fix it, if it didn't pass the validating process.

Review and create

Validating pass

Step 10
Click on 'Create' Button to initialise and deploy the virtual machine .

create virtual machine

Deployment in progress

Deployment Complete

Step 11
Click on 'Go to resources'.

Go to resources

Step 12
Click on 'Public IP address' to increase the idle time out and click 'save'

Public IP address

Idle time out settings

Step 13
Click on 'Connect' to create the virtual machine or connect to the remote Pc

connect the virtual machine

Step 14
Click on 'Select' to validate and configure the RDP

Select to validate & configure

Validated and configured RDP

Step 15
Click on 'Download RDP file',go to the downloads and run the file to connect to the Remote PC, put in your credentials (username & password) when it pops up, then click on 'Continue' when it prompt up.

RDP file download

Access request

launching the Remote Pc

Step 16
On the new windows web server remote Pc we created ,click on the start Button, and search for window PowerShell, right click to select it and run it as an administrator.

start button

Windows PowerShell

Step 17
Run the command below to install IIS role and management tools

Install-WindowsFeature -name Web-Server -IncludeManagementTools

Installation of the IIS role and management tools

successful installation of IIS role and management tools

Step 18
verification of the installed IIS role and management tools, to very this, copy your public IP address, open a web browser and paste your IP address and verify the installation.

IP address

IP address on a web browser

verified successful installation of IIS role and management tools.

Top comments (0)