Mount Azure blob - chhwang/devel-note GitHub Wiki

  1. 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
    
  2. Install blobfuse

    apt-get install blobfuse fuse
    
  3. Mount the blob

    NOTE 1: all paths to blobfuse should be an absolute path

    NOTE 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>