How to Auto-mount Azure Storage Account to Linux VM

774 views Asked by At

I am trying to mount an Azure storage account to a VM by following: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-quick-create-use-linux

Seems it works, but I need to re-mount after VM reboot.

Can I update /etc/fstab so it will auto-mount after VM reboot?

Currently I specify the Azure file storage account size when creating it (100GB in the example). Can I mount to a Azure file storage account without specifying size, so it can auto-scale and pay as it goes?

Thanks.

1

There are 1 answers

1
VenkateshDodda On

If you want to mount a NFS file share permanently even after the vm reboot then you need to update the fstab as explained in this documentation

Can I mount to a Azure file storage account without specifying size, so it can auto-scale and pay as it goes?

No you cannot.NFS file shares are supported for premium storage accounts only. 100GB is the minimum storage/quota allocated when you create a NFS file share and you can expand up to 102400GB by using change size and performance option as shown in below image

enter image description here