Mount Blobstorage to Instance Disk in Azure
By mounting blob storage as an instance disk you can handle your unstructured data, scaling up or down as your needs change. You no longer have to manage it, only pay for what you use, save money over instance disk space options.
Blobfuse is a virtual file system driver for Azure Blob Storage, which allows you to access your existing block blob data in your Storage account through the Linux file system. Azure Blob Storage is an object storage service and therefore does not have a hierarchical namespace.
1.Open portal.azure.com
2. Get the access key
3. Create azure storage and blob
4. Get the access key
5. Connect to the instance
6. Mounting
sudo -i
wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update
apt-get install blobfuse
mkdir /mnt/resource/blobfusetmp
chown <youruser> /mnt/resource/blobfusetmp
Nano /mnt/resource/fuse_connection.cfg
accountName myaccount
accountKey myaccesskey==
containerName mycontainerchmod 777 fuse_connection.cfg
mkdir /mycontainer
blobfuse /mycontainer --tmp-path=/mnt/resource/blobfusetmp --config-file=/mnt/resource/fuse_connection.cfg -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120 -o dir_mode=770 -o file_mode=666 -o nonempty
