Azure Managed Disks contd
Performance Aspects
- IOPS: Number of read/write operations that can be performed on the disk
- Throughput: Amount of data per second that can be read/write on the disk
- Throughput = IOPS * Block_size
- Disk types Refer Here
- Any virtual machine which supports premium disks will have
sin it (B1s and B1)
Unmanaged disk
- This is not recommended as each storage account can have a max of 40 disks and max performance is 20000 IOPS
- Refer Here for comparisions
- To create unmanaged disks navigate to Advanced section

- We need a storage account
Attaching and detaching disks
- While creating vm1 add and additional data disk


- Create a vm2 with no additional data disks

- Detach data disk from vm1

- Now attach data disk to vm2

- Commands used to attach disks
# in bash
diskId=$(az disk show -g myResourceGroup -n myDataDisk --query 'id' -o tsv)
# in powershell
$diskId =az disk show -g myResourceGroup -n myDataDisk --query 'id' -o tsv
az vm disk attach -g myResourceGroup --vm-name myVM --name $diskId
- Explore shared disk

Exercise
- What is SMB?
- What are NAS (Network Attached Storage) and SAN (Storage Area Networks)
- When to use them?
