Shared Storage Using Azure File Service

In most cases, the virtual disks we create for an Azure VM are connected to that particular VM with a 1:1 relationship which can’t be accessed by another VM at the same time. In case you need a shared storage by multiple VMs, you should use Azure File Shares. Azure File shares can be mounted concurrently by cloud or on-premises deployments of Windows, Linux, and macOS. This is mostly used in case of any requirement of something like a shared application setting or if there, you need to share any tools or utilities between developers and administrators.

To create a file share, you can use either an existing storage account or create a new storage account, provided it is a standard type (not premium). From the storage, create a new File Share.


Give a name and quota for the storage. It is possible to have a maximum of 5 TBs.


On creating and selecting the data file share, it will take you to the "File share" dashboard with the basic controls like uploading, creating directories, resizing quota etc.


On clicking the "Connect" button, you can get the syntax to map the drive for both, Windows and Linux platforms.


Copy the syntax and add the desired drive letter followed by colon(:). You can check the syntax that contains the name of the storage account; followed by the name of the share with a username which is same as the name of the storage account; followed by a password which is basically a security key you can also access from the "Access key" section of the storage account. When you run the command in PowerShell with the drive letter added, you can see a Shared drive mapper to Azure storage.



 

Up Next
    Ebook Download
    View all
    Learn
    View all