In this article, we will learn how to create 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 few files in those directories, as shown below.

0_azurefileshareexample

Let’s create Directory and Files within those directories.

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

1_filesharelisting

Click on the File share to 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 capture.

2_filesharedetailsblade

You will be taken to the New Directory blade as shown in the below screen capture.

3_newdirectory

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 shown below.

4_directorylisting

Upload a File to an existing Directory: Navigate to the directory to which you would like to add files and then click on Upload button as shown below.

5_selectdirectory

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

6_uploadfiles

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.

7_directory1listing

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

8_directory2listing

Summary: we have learnt the following.

  • Create a Directory in a File Share
  • Create a File in a Directory.

Hope you enjoyed reading the article. Your feedback is appreciated.