Azure Managed disks contd
Activity 12: Attach a data disk to linux vm
- Create a free (b1s) vm with any linux os
- List the block devices
lsblk

- Create a directory
/tools - Attach a data disk of size 4GiB

- Now list block devices

- The disk can be partioned or used directly for partiotion Refer Here
- Lets use the disk directly by creating a xfs filesystem

Activity 13: Ensure mounts are available after restart
- Lets stop the vm and start the vm
- We observe the /tools is not mounted.
- To retain mounts in linux across restarts we need to use fstab Refer Here
- Add fstab entries as discussed in the class.
Activity 14: Create a backup of as disk.
- Backup of disk is referred as snapshot.

- types of backup
- full: Complete readonly copy of disk
- incremental: backups the changes done post previous snapshot.

Activity 15: Create a disk from this snapshot and mount to vm.
- Create a disk


- Attach this disk to new vm


Activity 16: Enable automatic backups for disks
- Create a vm with b1s and ubuntu os
- ssh into vm and install any application
- Open Backup center


- For Backups, we can use
- Backup center
- Business continuity center
- For Recovery, we can use
- Recovery services vault
- Business continuity center
- The data will be stored in vault
