If you have not seen recent post on Azure blog , then I would like to let you know that Azure Files are now GA. Details of this blog entry are available here.
Since I would not like to make duplicate of content I’m going to show you how you can get the Azure File share mapped on your linux boxes. Why linux boxes ? I already have tryzylion ideas of usage for this – major one is Docker and containers which I would like to make HA or my own Docker repository.
Creation of files via portal is extremly easy and intuitive
We need to install the following package if not alredy present ( I become a fan of ubuntu 🙂 :
sudo apt-get install cifs-utils
Then next step is mounting the share. This has some limitations based on SMB protocol version being used (for more detailed info look into the mentioned azure blog post link ) . I will be using in this instance SMB v3 so we are good to go on using AF on premises.
sudo mount -t cifs //rafpeninja.file.core.windows.net/docker-demo-data ./dockerdemodata -o vers=3.0,username=rafpeninja,password=YourAwesomeStorageKey==,dir_mode=0777,file_mode=0777
As I did not want to play yet with any restrictions the permissions are kind high 🙂 but you can modify them as you need
Once this is done you can head to the folder and create a sample file.
sudo touch test.me
When done you can see that file instantly via the portal
And here you go – your file is immiediately available. If you got any scenarios where you already use those I’m keen to hear about it !