How to create a window 10 virtual machine and attach a data disk to it.



This content originally appeared on DEV Community and was authored by UMEOHIA NNAMDI

A virtual machine is a type of software that copies how a real computer works. A virtual machine runs an operating system and applications like a real computer. However, it is stored on a physical computer called the host. It is controlled by a program called a hypervisor, which creates and runs virtual machines.
A disk is a type of storage used mainly with Virtual Machines (VMs). It works like a hard drive in a real computer, but it is in the cloud. Azure disks store the operating system, apps, and other files.

How to create a window 10 virtual machine.

1.Login to Azure portal https://portal.azure.com.

2.In Azure portal, search for and select virtual machine.

search for virtual machinces

3.Click + Create.

+ create

4.Select Virtual machine.

select virtual machines

5.On the Basics tab, Select the subscription and the resource group or create new one (give it a name and click OK).

subscription and resource group

6.On the Basics tab, under Instance details; give your virtual machine a name, select region, select availability option, select availability zone, select security type, select the Image (which is the operating system), and then check on the Run with Azure spot discount.

name, region, zone

7.Under Administrator account, choose a Username and create a password.

username and password

8.Under Inbound port rules, select your inbound ports as HTTP 80 and RDP 3389. Check the licensing box.

inbound port rule and licensing

9.On the Monitoring tab, under diagnostics, disable your boot diagnostics to protect your Privacy. This stops Microsoft from tracking some details of your Virtual Machine.

boot diagnostics

10.On the Tags tab, create a name and value to help categorize resources for easy identification and trackings.

tags

11.Select Review + create.

Review + create

12.When validation is passed, select Create.

create

13.Wait for the deployment to complete and go the resource.

Go to resource

14.On the resource, select the public IP address.

IP address

15.Increase the idle time out and save.

idle time and save

How to add data disk to the virtual machine.

1.On the overview of the virtual machine, under settings section, select Disks.

select disk

2.Under data disks, select create and attach new disk. Choose the LUN(logical unit number), disk name, storage type, size, encryption and host caching. And apply.

create disk

Connect to your Remote desktop and format the data disk to be healthy or usable.

1.On the virtual machine overview, click on connect dropdown and select connect to connect to your remote desktop.

connect

2.Click on Select and for validation and configuration.

local machine

3.Select download RDP file to download the file.

download rdp file

4.Go to your download to open the file. Remote desktop connection security warning will prompt up, select connect.

open rdp and connect

5.Enter your Admin password for authorization.

password

6.Remote desktop connection certification warning will prompt up, select yes.

**7.Remote desktop is deployed and connected.

deployed

To format the data disk and make it usable/Healthy.

1.On your Remote Desktop, go to the search bar at the bottom of the screen. Type Disk Management, then click on Create and format hard disk partitions.

remote desktop

2.Select ok to initialize a disk before logical disk manager can access it.

initialize

3.Scroll down, On the disk you created (Disk 2),right click and select New simple volume.

new simple volume

4.Select Next to start the New simple volume wizard.

next

5.Select Next to specify volume size.

specify volume size

6.Assign drive letter or path and select Next.

Assign drve letter

7.choose the volume label and select Next.

volume label

8.Select Finish to complete the New simple volume wizard.

Select Finish

9.After completing our new simple volume wizard, then our disk is healthy/usable or allocated.

After completing our new simple volume wizard, then our disk is healthy/usable or allocated


This content originally appeared on DEV Community and was authored by UMEOHIA NNAMDI