5
(1)

[EXERCISE] IMPLEMENT AND USE AZURE FILE STORAGE

Are you looking for a step-by-step exercise to implement and use Azure File Storage? here are the steps to implement Azure File Storage.

The main tasks for this exercise are as follows:

  1. Create an Azure File Service share
  2. Map a drive to the Azure File Service share from an Azure VM

Task 1: Create an Azure File Service share

Step 1: In the Azure portal, navigate to the blade displaying the properties of the second storage account you created in the previous exercise.

Step 2: From the storage account blade select File shares under File Service.

Step 3: From the storage account File shares blade, create a new file share with the following settings:

  • Name: az10002share1
  • Quota: 5 GB
Create an Azure File Service share

Task 2: Map a drive to the Azure File Service share from an Azure VM

Note: Before you start this task, ensure that the template deployment you started in Exercise 5 has completed.

Step 1: Navigate to the az10002share1 blade and display the Connect blade.

Step 2: From the Connect blade, copy into Clipboard the PowerShell commands that connect to the file share from a Windows computer.

Connect to the file share

Step 3: In the Azure portal, navigate to the vm1 blade or create new vm1 if not already created.

Step 4: From the vm1 blade, connect to the Azure VM via the RDP protocol and, when prompted to sign in, provide the following credentials:

Admin Username & Password

Step 5: Within the RDP session, start a Windows PowerShell ISE session.

Step 6: From the Windows PowerShell ISE session, open the script pane and paste into it the content of your local Clipboard.

Step 7: Execute the script, and verify that its output confirms successful mapping of the Z: drive to the Azure Storage File Service share.

Execute the script
Mapping of the Z drive to the Azure Storage File Service share

Step 8: Right click the Start menu, click Run, in the Open dialog box type Z: and press the Enter key. This will open a File Explorer window displaying the contents of the Z: drive.

Step 9: In the File Explorer window, create a folder named Folder1 on the Z: drive.

Step 10: In the File Explorer window, navigate to Folder1 and create a text document named File1.txt.

Note: Make sure that you take into account the default configuration of File Explorer that does not display known file extensions in order to avoid creating a file named File1.txt.

Create text file document

Step 11: From the PowerShell prompt, enter Z: to change the directory context to the mapped drive.

Step 12: From the PowerShell prompt, enter dir to list the contents of the drive. You should see the directory that you created from File Explorer.

Step 13: From the PowerShell prompt, enter cd Folder1 to change directories to the folder. Run the dir command again to list the file contents.

Check file using dir command

Result:

After you completed this exercise, you have created an Azure File Service share, mapped a drive to the file share from an Azure VM, and used File Explorer from the Azure VM to create a folder and a file in the file share.

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Share this post on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?