Azure Disks (managed disks)
- azure managed disks are used to attach virtual machine
- to create disk we need azure storage account
- can mount more than one disk
- linux mount disk (/dev/*), Windows (C drive os and other dirver data storage D, E, F )
disk role in vm
- os disk ==> which will contain operation and system and its application data
- data disk : app data, database data, application data
- temporay disk: non host data and use temporay storage in vm
types of disks
- Ultra disk:
- not used for OS
- max iops will be 4,00,000 (read/wirte operations per second)
- Thoughout puts max will be 10,000 mb/s
- latency will be sub-ms ( faster disk in azure)
- used for databases and heavy workloads
- cost very high
- Premium SSD v2
- not used for OS
- max iops will be 80,000 (read/wirte operations per second)
- Thoughout puts max will be 1200 mb/s
- latency will be sub-ms
- used for production for application data, best workloads
- cost will high
- Premium SSD
- used for OS + data disk also will suppourt
- max iops will be 20,000 (read/wirte operations per second)
- Thoughout puts max will be 900 mb/s
- latency will be low-ms
- used for production vm os
- cost will effective best for performance
- Standard SSD:
- general purpose
- used for os disk
- max iops will be 6,000 (read/wirte operations per second)
- Thoughout puts max will be 750 mb/s
- latency will be ms
- used for other then production
- cost will low
- web server, small web application …etc
- Standard HDD:
- used for os disk
- max iops will be 2,000 (read/wirte operations per second)
- Thoughout puts max will be 500 mb/s
- latency will be ms
- used for backup and non-frequently access files, archeived files
- cost will very low
LRS and ZRS

- LRS will store back in same avaliablity zone and cost low
- ZRS will store backup in multiple AZ and cost will be high
attach disk to linux vm
attach disk to windows server
- steps to mount disk
login to vm by ssh
sudo parted /dev/nvme0n3 --script mklabel gpt mkpart xfspart xfs 0% 100%
sudo mkfs.xfs /dev/nvme0n3p1
sudo partprobe /dev/nvme0n3p1
sudo mkdir /datadrive
sudo mount /dev/nvme0n3p1 /datadrive
sudo blkid # give UUID
## fstab
/dev/nvme0n3p1: UUID="9d789acc-b140-4163-8f6e-41a319c42ae6" BLOCK_SIZE="4096" TYPE="xfs" PARTLABEL="xfspart" PARTUUID="997f4fa6-769f-4da3-8dbc-d62a4f92b91a"
UUID=9d789acc-b140-4163-8f6e-41a319c42ae6 /datadrive xfs defaults,nofail 1 2
add above line /etc/fstab
Task
- follow same steps and create disk and vm and attach disk to linux vm
- Try above windows referance to attach disk to windows vm.
