HOW TO CREATE DATA DISK FOR VIRTUAL MACHINE
Published: 2024-04-12 23:47:43

There are three main disk rule in azure. They are 
i) the data disk
ii) OS disk( operating system disk)
iii) the temporary disk
 **The Data Disk:** This is a storage device or a managed disk that is attached to a virtual machine to store application data, or other data that one might need to save for future use.
**OS Disk** (Operating System  Disk): This is a storage device that is created along side with the virtual machine(VM).It has a preinstalled Os Image. It  has a boost volume i.e. a place where Os stores its system files.
**Temporary Disk:**: The temporary disk provides short-term storage for applications and processes, and is intended to only store data such as page files, swap files, or SQL Server. Data on the temporary disk may be lost during a maintenance event, when you redeploy a VM, or when you stop the VM. 
**HOW TO CREATE DATA DISK FOR A VM**
a. open window virtual page on azure portal locate and click on disk 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzpd4s4a2psdg65mjluq.png)
b. In the data disk click on create and attach a new disk
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/scfbo5vle5qbzuduyacu.png)
c. Fill the required information such as disk name, size, etc then apply.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ubas72b3l4gfbny0p95c.png)
d. Allow the disk to be created and attached.Once its done,you will successfully created  disk message  on the right top corner.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3m1mumocn4s3uwy2qz02.png)
**HOW TO INITIALIZE THE DISK TO THE VIRTUAL MACHINE**
a. Open the  window virtual machine page in azure

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4giwx6z7kbzk9j8kpmzf.png)
b. **Right click** on any part of  window and click disk management

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ppf29v6t19bz4o5yo4g1.png) 
c. Right click on Disk 2 and click **simple volume**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6nst8savv20amsltsg1g.png)
d. A welcome to the simple volume page will showed up. Click next 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ady5zbx6mnj39vw0szr.png)
e. Click **next**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8b5ym0okxues62j52sym.png)
f. click **next**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1aiz1k4khaun5q0o3gns.png)
g.Click **Next**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f6ukveykpfztndzsboh9.png)
h. Click **finished.** The code of the disk will change immediately to F:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pvyw88ctycathizskxhd.png)
**HOW TO CHECK FOR THE ATTACHED DATA DISK ON THE WINDOW VIRTUAL MACHINE **
a. open the  window page and click on the file folder icons 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7l00y33wuvrgpqvp78x1.png)
b. On the left corner of the page click on **This PC **

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2cqgtuve9dujtdpzypbo.png)
c. Wait for the data storage page to load

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b72x5zgeby6c4yfz8ugk.png)