Mount Azure blob - chhwang/devel-note GitHub Wiki
-
Download and install Microsoft packages deb
UBUNTU_VERSION="$(cat /proc/version | sed "s/.*~//" | cut -c1-5)" wget https://packages.microsoft.com/config/ubuntu/${UBUNTU_VERSION}/packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb apt-get update
-
Install blobfuse
apt-get install blobfuse fuse
-
Mount the blob
NOTE 1: all paths to
blobfuse
should be an absolute pathNOTE 2: SAS token should be enclosed with double quotes
export AZURE_STORAGE_ACCOUNT=<your account name here> export AZURE_STORAGE_SAS_TOKEN="<your SAS token here>" blobfuse <your local mount path here> --container-name=<your container name here> --tmp-path=<your local path for temp files here>