
close
close
In this post, Aidan will show you how to deploy Azure File Sync to synchronize files from a file server to Azure, which you can then use to enable tiering of hot/cold files, inter-site replication, cloud-based backup. and disaster recovery.
In this demo lab, I have a file server which will synchronize 3 folders called Accounting, Sales, and Marketing. The destination will be a storage account in the West Europe region of Azure (Netherlands).
The components of Azure File Sync [Image Credit: Aidan Finn]
The file sync agent will require the AzureRM (ARM) PowerShell modules to be installed first. You can retrieve the latest version of the released MSI installer from GitHub. Note that a new installation of the modules will require a reboot of the file server – this will probably require a maintenance window.
Create a general purpose (v1 or v2) storage account in the region that you want to synchronize to. Note that this storage account should be in a close Azure region (latency) to the file server – this will minimize the impact of tiering (if enabled later) or disaster recovery.
In the storage account, you should create an Azure Files share for each sync group that you require:
Note that leaving quota blank will use the maximum limit of 5 TiB.
Creating an Azure Files share [Image Credit: Aidan Finn]
The Azure Files Shares that each file server share will synchronize to [Image Credit: Aidan Finn]
The next step is to deploy the Storage Sync service in Azure. Open the Azure Portal and deploy Azure File Sync – this will launch the Deploy Storage Sync blade. Give the storage sync service a name, and choose a resource group and Azure region to deploy it into.
Deploying the Azure Files Sync storage sync resource [Image Credit: Aidan Finn]
The storage sync service will only take a few seconds to deploy in Azure. Once ready, open the storage sync service and browse to Registered Servers. Click the link to download the Azure File Sync agent, and download/copy the installer to your file server.
Note that there is a version for Windows Server 2012 R2 and Windows Server 2016 – older versions of Windows Server are not supported.
Run the installer on the file server – it’s a pretty typical & simple Microsoft installer. Note that you can configure the agent to communicate with Azure through a proxy server.
The registration wizard will automatically launch but you can also start it manually – C:\Program Files\Azure\StorageSyncAgent\ServerRegistration.exe.
Unlike with Azure Site Recovery or Azure Backup, you will register the agent using a username/password rather instead of using a downloaded credentials file. How this will work depends on if your subscription has been acquired through the Cloud Solutions Provider (CSP) channel or not.
You will be prompted to sign into your Azure subscription. There is a toggle that you must select if you are using a CSP channel subscription.
Sign in to register Azure File Sync agent [Image Credit: Aidan Finn]
Select the Azure File Sync storage sync service [Image Credit: Aidan Finn]
The registered file server appears in Azure [Image Credit: Aidan Finn]
I will create one sync group for each shared folder on my file server, and each will synchronize to a cloud endpoint (Azure Files share).
Browse to Sync Groups in the storage sync service and click + Sync Group. In the Sync Group balde:
Creating a new sync group in Azure File Sync [Image Credit: Aidan Finn]
Adding a server endpoint to a sync group in Azure File Sync [Image Credit: Aidan Finn]
The synchronized files from the file server [Image Credit: Aidan Finn]
The sync groups for my lab [Image Credit: Aidan Finn]
More in Microsoft Azure
Microsoft Dev Box Adds New Features Ahead of its General Availability in July
May 23, 2023 | Laurent Giret
Microsoft's Azure Deployment Environments Service Now Generally Available
May 23, 2023 | Rabia Noureen
Microsoft Fabric Brings New AI-Powered Data Analytics Features to Boost Productivity
May 23, 2023 | Rabia Noureen
Azure Firewall Adds New Logging and Metrics Features to Enhance Traffic Analysis
May 17, 2023 | Rabia Noureen
Most popular on petri