Skip to content

Instantly share code, notes, and snippets.

@lahma
Last active February 28, 2018 10:17
Show Gist options
  • Save lahma/7bbd5dcc23658a4499883b1afefa2602 to your computer and use it in GitHub Desktop.
Save lahma/7bbd5dcc23658a4499883b1afefa2602 to your computer and use it in GitHub Desktop.
#!/bin/bash
# $1 = Azure storage account name
# $2 = Azure storage account key
# $3 = Azure file share name
# $4 = mountpoint path
# For more details refer to https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/
# update package lists
apt-get -y update
# install cifs-utils and mount file share
apt-get install cifs-utils
mkdir $4
mount -t cifs //$1.file.core.windows.net/$3 $4 -o vers=3.0,username=$1,password=$2,dir_mode=0444,file_mode=0444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment