Azure File Sync

Azure File Sync

Azure File Sync

Azure File Sync

Files are an important resource in a company. For workstations rarely connected to the local network, these files are stored locally.
It is therefore important to ensure that these files are synchronized on an enterprise server or in the cloud. All protocols offered by Windows Server (SMB, NFS et FTPS) are available in Azure File Sync.

Prerequisites

Several prerequisites are necessary to set up Azure File Sync :

  • Create Azure storage account
  • Create a file share in Azure
  • have a Windows Server instance

Create account storage

From the Azure portal (Azure.microsoft.com), click on Search field and enter Storage. Click on Storage accounts.

Azure File Sync - Configure Azure File Storage

A new window appears, click on Add.

Azure File Sync - Add new account

Enter the name of the storage account, if valid select the Azure region. Then select the desired redundancy. Create or select ressource groups and click to Create button.

Azure File Sync - Configure new storage account

Create file sharing

Azure file sharing requires the prior creation of a storage account. From the Azure portal, click on All Resources then on the storage account previously created.

Azure File Sync - View all storage account

In the central blade, click Files shares.

Add File share on Azure

Click on + File Share.

Enter the name of the share and the quota in GB and click on Create.

Configure file share

Sharing is now created

Deployment of Azure File Sync

In order to be able to deploy Azure File Sync, it is necessary to perform some operations in the Azure portal. From the Azure portal, click Create a ressource and then search azure File Sync. Click Create on the central panel.

Create Azure File Sync

Enter the desired name and the resource group to be used. Click to Create for lauch creation

Create Azure File Sync

Azure File Sync is now correctly configured.

Azure File Sync is now configured

Click to Getting started to see the operations to be performed.

Click on Getting starting

Register your servers

In the Getting Started, click to Download the Azure sync agent link for download the agent.

Download the Azure File sync agent

Launch the agent file on the server then click Next.

Install agent for Azure File Sync

Click on Next the following windows then proceed to install the agent.

Install Azure File sync agent

Click Finish. A window appears to verify that the agent is up to date.

Click to Finish when agent has been installed

Click on Sign in to register the server. Enter the username and password of your azure global admin in the window that appears.

Sign in for register server

Use the drop-down lists to select Azure Subscription, Resource Group and Storage Sync Service. Click to Register to lauch register.

Select components for regsiter Azure File sync server.

Create a synchronization group

From the Azure portal, click on All Resources then on the File sync service previously created.

Create Azure File sync groups

Click on + Sync group.

Add new Sync group

Enter the name of the storage group and click on Select storage account.

Configure Sync Group

Select the storage account then from the drop-down list, select Azure file sharing. Click to create to lauch creation

Select Azure File share and create sync group

Click on the previously created Sync group. An endpoints server must be added. To do this click on Add server Endpoint. Select the desired server Registered then in the Path field enter the path of the directory containing the data. Click to create to lauch creation.

Add Server Endpoint for configure server
Add server and enter folder

Files and folders in the directory are replicated in Azure. Depending on the quantity of Data, this operation can be more or less long. If you return to the created share, the files are present.

Data is synchronised on storage account

Connect network drive

you can configure netword drive for map Azure file share. From the Azure portal, access to Azure file share and click on Connect. Choose the desired letter and copy the powershell script. Run the script on the computer or server for map network drive.

Configure script for network map

you can run the command to connect the network drive

Run the script for map network drive
The network drive is now mapped

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.