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.
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
Before implementing the solution, it’s important to check the availability of the functionality.
Availability Azure File Sync
Create account storage
From the Azure portal (Azure.microsoft.com), click on All services then Storage account.
A new window appears, click on Add.
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.
The account storage has now been created.
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.
In the center panel, click Files.
Click File Share in the center panel.
Enter the name of the share and the quota in GB.
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.
Enter the desired name and the resource group to be used. Click to Create for lauch creation
Azure File Sync is now correctly configured.
Click to Getting started to see the operations to be performed.
Register your servers
You need install Windows Management Framework 5.1 and AzureRM PowerShell on the server where agent will be installed.
You can download Windows Management Framework 5.1 on this web page.
When it’s installed, you can execute the command PowerShell for install AZureRM PowerShell Module.
- Install-Module PowerShellGet -Force
- Install-Module -Name AzureRM -AllowClobber
In the Getting Started, click to the Download the sync agent link for download the agent.
Launch the agent file on the server then in the welcome window, click Next.
Validate the following windows then proceed to install the agent.
Click Finish at the end of the installation. A window appears to verify that the agent is up to date.
Click Sign in to register the server. Enter the Azure identifiers in the window that appears.
Use the drop-down lists to select Azure Subscription, Resource Group and Storage Sync Service. Click to Register to validate operation.
Create a synchronization group
From the Azure portal, click on All Resources then on the File sync service previously created.
In the center panel, click Sync group.
Enter the name of the storage group and select the storage account. From the drop-down list, select Azure file sharing. Click to create to lauch creation
Click on the previously created Sync group. An endpoints server must be added. To do this click on Add server Endpoint in the central panel. 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.
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.
Click Connect for instructions to connecting a network drive.
you can run the command to connect the network drive