Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mount azure datadisk in virtual machine

Tags:

azure

How can I mount an Azure data disk from a linux virtual machine?

I think it might be something like this

az vm disk attach-existing [virtualmachinename] [datadiskname]
like image 752
patrick Avatar asked Oct 13 '17 20:10

patrick


People also ask

Can Azure VM share disk?

Currently only ultra disks, premium SSD v2 managed disks, premium SSD managed disks, and standard SSDs can enable shared disks. Shared disks can be attached to individual Virtual Machine Scale Sets but can't be defined in the Virtual Machine Scale Set models or automatically deployed.

What command can you use to attach a data disk to a Virtual machine VM using Resource Manager?

You can add the data disk to the virtual machine configuration with the Add- AzureRmVMDataDisk command below.

What is data disk in Azure VM?

Data disk. A data disk is a managed disk that's attached to a virtual machine to store application data, or other data you need to keep. Data disks are registered as SCSI drives and are labeled with a letter that you choose. Each data disk has a maximum capacity of 32,767 gibibytes (GiB).


1 Answers

I found the solution, its confusing because the documentation for creating azure disk is hard to sort from the documentation for creating a mount point. This is the relevant documentation.

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/add-disk#connect-to-the-linux-vm-to-mount-the-new-disk

For an alternative walkthrough, see this blog: https://chrismckee.co.uk/creating-mounting-new-drives-in-ubuntu-azure/. I couldn't identify the disk I'd like to mount with the official Azure docs and this post helped.

like image 61
patrick Avatar answered Oct 27 '22 07:10

patrick