Azure storage file

Recently, I needed to share my trained PyTorch model weights between 2 different Virtual machines. I found out working with Azure file storage in python is surprisingly easy.

For those who are not familiar with Azure storage,  Azure storage is a Microsoft-managed cloud service that provides storage that is highly secure and scalable. Azure Storage consists of Blob storage, File Storage and Queue storage. You can read more about Azure storage on Microsoft docs.

After login to the Azure portal, you can easily create a storage resource and get the blob name and storage key.














All you need is, cloning the notebook I have shared on Github and update values of blob name and blob key.





https://github.com/Azadehkhojandi/azurefilestoragehelper/blob/master/AzureStorageHelper.ipynb


Now, you should be able to upload a folder to azure files storage from one VM and download the folder on another VM.



0