Skip to content

Instantly share code, notes, and snippets.

@briglx
Last active May 19, 2016 17:22
Show Gist options
  • Save briglx/a9efe2de4dbeb3ac712b77ffac8aab39 to your computer and use it in GitHub Desktop.
Save briglx/a9efe2de4dbeb3ac712b77ffac8aab39 to your computer and use it in GitHub Desktop.
Bash script to mount Azure Storage File as network share
#!/bin/bash
# See for details https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/
sudo apt-get install cifs-utils
mkdir ~/myFolderName
sudo mount -t cifs //myAzureStorageAccountName.file.core.windows.net/myFileShareName ~/myFolderName -o vers=3.0,username=myAzureStorageAccountName,password=myAzureStorageAccountAccessKeyEndingIn==,dir_mode=0755,file_mode=0664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment