Files shares storage
- Share files with a set of machines or users
- Tiers
Premium
: requires premium storage account
Transaction optimized
: for lots of read/writes
Hot
: frequent access
Cool
: moderate access (transaction costs are higher on cooler tiers)
Connect
- The
connect
tab gives you commands to mount the drive into your local filesystem
- In order to connect, your machine must have firewall rules allowing access to port 445
sudo mkdir /mnt/demo
if [ ! -d "/etc/smbcredentials" ]; then
sudo mkdir /etc/smbcredentials
fi
if [ ! -f "/etc/smbcredentials/hvitoi.cred" ]; then
sudo bash -c 'echo "username=hvitoi" >> /etc/smbcredentials/hvitoi.cred'
sudo bash -c 'echo "password=MPGwnjXGK8X1JXwbjo8NcomLICYuC8ViTFzVNi+MHVM6JMQ417DFgLzkve2Ufk7Ybrn/jrGkkndycRd53RQJJA==" >> /etc/smbcredentials/hvitoi.cred'
fi
sudo chmod 600 /etc/smbcredentials/hvitoi.cred
sudo bash -c 'echo "//hvitoi.file.core.windows.net/demo /mnt/demo cifs nofail,vers=3.0,credentials=/etc/smbcredentials/hvitoi.cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab'
sudo mount -t cifs //hvitoi.file.core.windows.net/demo /mnt/demo -o vers=3.0,credentials=/etc/smbcredentials/hvitoi.cred,dir_mode=0777,file_mode=0777,serverino