Skip to content

Instantly share code, notes, and snippets.

@vincent-dm
Last active November 22, 2016 17:12
Show Gist options
  • Save vincent-dm/211f90e4abc547282b7c to your computer and use it in GitHub Desktop.
Save vincent-dm/211f90e4abc547282b7c to your computer and use it in GitHub Desktop.
How to add Azure File Service storage as an SMB mount in Ubuntu Linux
sudo mkdir /shared
sudo mkdir /shared/folder
sudo chown ubuntuusername:ubuntuusername /shared/folder
touch ~/.credentials
echo "username=storageaccountname" | sudo tee ~/.credentials
echo "password=azureaccesskey" | sudo tee ~/.credentials
chmod 600 ~/.credentials
echo "" | sudo tee -a /etc/fstab
echo "//storageaccountname.file.core.windows.net/filesharename /shared/folder cifs vers=2.1,credentials=/home/username/.credentials 0 0" | sudo tee -a /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment