How to mount Azure Blob Storage inside a Linux machine
Get information about credentials file
- Login to the Azure Portal:
- From the upper search field, write “Storage accounts”
- From the main pane, click on the target storage account name -> from the main pane, click on Access keys -> write the following details on a temporary location for future use:
- Storage account name
- Key 1 -> Key
- Logoff the Azure portal
Blob Fuse installation
- Login using SSH to the target Linux machine using privileged account.
- Follow the instructions below to install the Blobfuse:
- Run the command sudo vi /opt/connection.cfg to create config file with the following content:
- accountName <account-name>
- accountKey <account-key-name >
- containerName <container-name>
- Note 1: Replace <account-name> with the value of the storage account name from the Azure portal
- Note 2: Replace <account-key-name> with the value of the “key” from the Azure portal
- Note 3: Replace <container-name> with the target Azure blob storage container name
- Change the permissions of the connection.cfg file
- sudo chown MyUser:MyUser /opt/connection.cfg
- sudo chmod 600 /opt/connection.cfg
- Note: Replace MyUser with the username you have logged into the Linux machine