DEV Community

Emmanuel Ukoha
Emmanuel Ukoha

Posted on

How to create a Windows VM and Install a Web Server

Hands-On Lab on Creating the Azure VM (Windows Server 2019)
There are 3 primary steps in creating the Azure VM (Linux (ubuntu 20.04).

Create virtual machine in the Azure Portal + Configurations
Test the Connection
Install Web Server & View the Web Server in Action

  1. Create virtual machine in the Azure Portal + Configurations Go to your Azure Portal. Now, on your left-hand side, click “Virtual Machines”. If this is your first time creating VMs, then you will not see any instances running. Proceed “Create Virtual Machine”.

Image description

Image description

For “Project Details”, make sure the correct subscription is selected.

Image description

In administrator account, provide the admin username for the VM and password.
Make sure you select HTTP for web access

Image description

Then, I will leave the rest of the configurations by default. Proceed “Review + Create”. Wait until the deployment is successful.

Note: Make sure it passes Validation

Image description

Congratulations!!! You just created a Virtual Machine

Image description

Install Web Server

Download the RDP File

Image description

Launch RDP File and connect with Windows credentials
Once Successful, Launch the PowerShell Application (Run as Administrator) and Install the web server with the commands below

Install-WindowsFeature -name Web-Server -IncludeManagementTools
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

After successfully installing the server, Launch the Public IP Address from Azure on a Browser

Image description

Image description

Share and Like

Top comments (0)