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.
3.Click + Create.
4.Select Virtual machine.
5.On the Basics tab, Select the subscription and the resource group or create new one (give it a name and click OK).
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.
7.Under Administrator account, choose a Username and create a password.
8.Under Inbound port rules, select your inbound ports as HTTP 80 and RDP 3389. Check the licensing box.
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.
10.On the Tags tab, create a name and value to help categorize resources for easy identification and trackings.
11.Select Review + create.
12.When validation is passed, select Create.
13.Wait for the deployment to complete and go the resource.
14.On the resource, select the public IP address.
15.Increase the idle time out and save.
How to add data disk to the virtual machine.
1.On the overview of the virtual machine, under settings section, select Disks.
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.
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.
2.Click on Select and for validation and configuration.
3.Select download RDP file to download the file.
4.Go to your download to open the file. Remote desktop connection security warning will prompt up, select connect.
5.Enter your Admin password for authorization.
6.Remote desktop connection certification warning will prompt up, select yes.
**7.Remote desktop is deployed and connected.
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.
2.Select ok to initialize a disk before logical disk manager can access it.
3.Scroll down, On the disk you created (Disk 2),right click and select New simple volume.
4.Select Next to start the New simple volume wizard.
5.Select Next to specify volume size.
6.Assign drive letter or path and select Next.
7.choose the volume label and select Next.
8.Select Finish to complete the New simple volume wizard.
9.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