A virtual machine is a digital equivalent of a physical computer. It can perform all functions that a physical computer can perform. These include running programs and operating systems, storing data, connecting to networks etc. It requires upkeep such as updates and system monitoring just like the physical computer.
Lets quickly run through how to create one, then we will connect to it and install a server role on the Virtual machine.
1.Create a Virtual Machine
a)Log in to Azure Portal and select Virtual Machine
b)Click on Create
c)Complete the following fields:
Subscription, Resource group(I will create MayWorkload1), Virtual Machine Name(Give the Virtual Machine a name, I will name this one Abby), Region(Select a Region of your choice) and Availability zone
Select Windows for the VM Image
Leave Security type, VM Architecture and Size at default
Under Administrator Account, Create User Name and Password
For this demo, our username is Azureuser and the password is Password123*
Note that these are the log in details for the Virtual Machine
Inbound Port Rules: Select HTTP 80 and RDP
Go to Monitoring and disable Diagnostics
d)Click on Review and Create
If Validation is passed, click on Create and if not, check to fix any error detected and move on
e)When the VM is fully deployed, click on Go to Resource.
2.Connect to the Virtual Machine
a)Click on Connect and select RDP
b)Click on Download RDP Files and open the file downloaded
A Window for the Remote Desktop Connection will come up.
c)Click on Connect and enter the User name and Password created in Step 1(c) above
d)Click OK
The Virtual Machine is ready
3.Install a Web Server role using PowerShell
a)On the desktop of the VM, use the Search window to search for Windows PowerShell. Click on it and select Run as Administrator
b)When the Terminal is ready, type this command in front of the Username: Install-WindowsFeature Web-Server
Type in this command exactly as it appears here because the PowerShell terminal window is case sensitive
Then press enter to allow it to install the Web Server
When the Web server has been fully installed, it will show Success as seen in the Image below
d)Go to the Overview page of the VM on the Azure portal and copy the Public IP Address of the VM.
Place it in your web browser to test the web server installed
You can see that we have successfully install a web server role on the Virtual Machine
I will like to have your feedbacks if you find this piece helpful
Top comments (0)