DEV Community

Lillie Mae
Lillie Mae

Posted on

HOW TO CREATE A WINDOWS VM, RDP INTO THE VM, INSTALL A WEB-SERVER AND ADD A DISK TO IT.

STEP 1: CREATING A WINDOWS VIRTUAL MACHINE

  • In your azure portal, search for "virtual machine". Select "Azure virtual machine".
  • Choose your subscription, add your resource group, give the vm any name of choice, change your "image" to windows, add a username and password for your administrators account, add Https in the "select inbound ports" row, tick the licensing box.
  • Click on review+create, wait for validation to be complete then click on Create.

STEP 2: RDP IN TO THE VM

  • Once deployment is completed, Go to resource.
  • Click on "connect" and choose RDP then wait for the page to load, scroll down the page and download the RDP file.
  • Once it’s been downloaded, click on "open" then click on "connect"
  • Fill in your credentials i.e the username used for your administrator’s account earlier, click on "OK" and then "YES"

STEP 3: INSTALLING A WEB-SEVER

  • Once it’s been connected to the vm, search for "Powershell" in the search panel.
  • Click on it and choose "Run as admin"
  • Once the administrators windows power-shell is up then type in this command: Install-windowsFeature web-server
  • Click on enter, wait for the successful installation of the web-server.
  • Go back to the "Overview page" of the vm, copy the ip address and paste it in your browser (google), hit enter to see the web-server you just installed.

STEP 4: ADDING A DISK TO IT (DATA DISK)

  • Go back to your virtual machine, Click on on "Disk"
  • Click on create and enter a data disk, give it a random name, change "Size" to 10Gb then click on "Safe"
  • Go back to your vm Rdp section and on the search bar, search for Disk management.
  • Once it opens, click on Ok.

STEP 5:

  • Scroll down to disk 2, right click on it for options, choose "New simple volume"
  • Click on Next, go with the default for the next two pages then in the "Format partition" row, give your volume label the name "Data disk" to format the new volume label.
  • Click on Next, then click on Finish.

N/B Before using a new volume, you must format it by giving it a new name.

Top comments (1)

Collapse
 
rdgmh profile image
Raphael Gab-Momoh

Nice