Virtual machine is a software-based emulation of a physical computer. It runs an operating system and applications just like a real computer, but it’s hosted on a physical machine (called the host) and managed by a hypervisor (software that creates and runs VMs).
Disk In Microsoft Azure, is a virtualized block storage used primarily with Virtual Machines (VMs). It’s similar to a hard drive in a physical computer but exists in the cloud. Disks in Azure store your operating system, application data, and other files.
How to create a window 10 virtual machine.
1.Login to Azure portal https://portal.azure.com.
2.In Azure portal, in the search resources, search for virtual machine and select the grayed out virtual machine.
3.Select + Create.
4.Select Virtual machine.
5.Under Basics, fill in the project details. Select the subscription and the resource group or create new one.
6.Under Basics, fill in the Instance details: choose the name of the virtual machine, region, availability option, availability zone, security type, the Image (which is the operating system), the size 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 because we use windows as our operating system and keep your Remote desktop protocol as 3389.
9.Finally under the Basics, check the Licensing.
10.Under Monitoring, disable your boot diagnostics for Privacy. Hosting a virtual machine on Azure, basically gives Microsoft a track of your deployments, so to stop that you have to disable your boot diagnostics.
11.Under Tags, create a name and value to help categorize resources for easy identification and monetary tracks.
12.Select Review + create.
13.When validation is passed, select Create.
14.Wait for the deployment to complete and go the resource.
15.On the resource, select the public IP address.
16.Increase the idle time out and save.
How to add data disk to the virtual machine.
1.On the home page of the virtual machine, go to the side menu, under settings, select Disks.
2.Under data disks, select create and attach new disk.
3.After selecting, create and attach new disks, 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, 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
5.Remote desktop connection security warning will prompt up, select connect
6.Enter your Admin password for authorization.
7.Remote desktop connection certification warning will prompt up, select yes.
8.Remote desktop is deployed and connected.
To format the data disk and make it usable/Healthy.
1.On your Remote desktop, under the window search portal, type in disk management select 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.