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.
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.
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
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.
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.
Step 6
Create Administrator account by creating a username and password to access the virtual machine.
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.
Step 8
Click on the 'Monitoring' to disable the boot diagnostics, then open the 'Tag' and fill in the details
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.
Step 10
Click on 'Create' Button to initialise and deploy the virtual machine .
Step 11
Click on 'Go to resources'.
Step 12
Click on 'Public IP address' to increase the idle time out and click 'save'
Step 13
Click on 'Connect' to create the virtual machine or connect to the remote Pc
Step 14
Click on 'Select' to validate and configure the 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.
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.
Step 17
Run the command below to install IIS role and management tools
Install-WindowsFeature -name Web-Server -IncludeManagementTools
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.
Top comments (0)