Azure File Storage Add Directory And Upload Files

In this article, we will learn how to create a directory and upload files.

Please go through the following articles to understand more about Azure Storage and its services:

In this series of articles, we will learn how to create an Azure File Share, store some directories / folders, and store a few files in those directories, as shown below.

Azure

Let’s create directories and files within those directories.

Navigate to the File Share listing blade as explained in my previous article Azure Storage – File Share – Introduction.

Azure

Click on the "File share" in which you would like to create the directory and upload the files.

Create Directory

After navigating to the "File share" details blade, click on the "Add Directory"  button, as shown in the below screen.

Azure

You will be taken to the "New Directory" blade.

Azure

Please provide a meaningful name to the "Name" field and click on "Create" button in the above step.

For the sake of this article, I created the following two directories, as shown below.

Azure

Upload a File to an existing Directory

Navigate to the directory to which you would like to add files and then click on the "Upload" button, as shown below.

Azure

Clicking on the "Upload" button, you will be taken to the following "Upload files"  blade.

Azure

You can use the "Folder" icon (highlighted in the above screen capture). You can choose multiple files at once and click on Upload button to asynchronously upload the selected files. In the above example, I selected two files to upload to Directory1. Below is the screen capture of the Directory1 listing.

Azure

In the same way, I uploaded two other files to Directory 2, as shown below.

Azure

Summary

We have learned the following.

  • How to create a Directory in a File Share
  • How to create a File in a Directory.

I hope you enjoyed reading the article. Your feedback is appreciated.