Configure and Connect to Azure Files from Windows

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Azure Files is a Microsoft managed file sharing solution, which helps to provide centralized file-sharing capabilities similar to a traditional on-premises file-server.

In this lab, you will have the opportunity to create an Azure Files share and connect to it from a Windows Server using SMB (Server Message Block, file sharing protocol).

After completing this lab, you’ll be familiar with how to create and connect to an Azure File share, as well as understanding important security considerations.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an Azure Files Share

Use the Azure Portal to create your Azure Files share:

  1. Navigate to the Storage Accounts section.
  2. Open Storage Accounts from the sidebar, and navigate to the storage account already created for you.
  3. Click on File shares in the storage account working pane.
  4. Click + File share to create a new file share.
  5. Name the file share "companydata" with NO quota.
Map the Azure Files Share from Windows

Use the Azure Portal to gather the necessary information. Please be aware you will need an RDP client to connect to the Windows server.

To connect to vm1, use the following credentials:

  • Username: azureuser
  • Password: (Use password provided in the credentials section of this lab.)

Connect to VM1 using RDP

  1. Navigate to the Virtual Machines services page.
  2. Open the existing VM called vm1.
  3. Click on the Connect option in the command bar, and select RDP.
  4. Use the RDP file with your preferred RDP client.

Note: you may choose to copy the public IP address and connect via RDP manually with your RDP client, instead of using the RDP file.

Copy the Files Share Details

  1. Navigate to the Storage Accounts section.
  2. Open Storage Accounts from the sidebar, and navigate to the storage account already created for you.
  3. Click on File shares in the storage account working pane.
  4. Click Connect in the resource command bar.
  5. Copy the Windows PowerShell connection script for later use.

Use the Azure Files Share from Windows

  1. Open PowerShell (Start > Windows PowerShell > Windows PowerShell)
  2. Paste and run the script from the Azure Portal you copied earlier.
  3. Open the mapped drive (Windows Explorer > This PC > Z drive).
  4. Create some folders and files.

Note you can open the Azure Files Share from the Azure Portal to verify that files you create are being stored centrally.

Additional Resources

You work as a solution architect for The Pupper Camp (TPC), a dog services company that has offices across the world.

The Pupper Camp runs a series of projects throughout the year, where staff works remotely outside of TPC offices.

You would like to test the capabilities of Azure Files, as you are considering designing a centralized file sharing solution to help TPC's mobile work-force.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?