Working with Azure file sync enables us to centralize our organization’s file shares in Azure Files while keeping the flexibility, performance, and compatibility of an on-premises file server. for more details about the file sync
>> Planning for an Azure File Sync deployment
- Azure Subscription
- Storage Account
- File Share
- File Sync Service
- Servers Endpoints [WS 2012 R2 / WS 2016]
- Sync Group
- Endpoints Agent
1- Create A storage account and File Share.
From azure portal go to storage accounts and create a new one / you can use an existing account.
Once the creation finished open the storage account >> Files >> create a File share
*This file will be the cloud endpoint*
2- Create the Sync Services
Fill the blade Group Name, Subscription, Storage Account that we created above and it’s File Share.
Download the Agent and Chose the OS Version 2012 R2 or 2016 servers
- Install the Agent on servers by installing the .exe file you download.
- Enter your Azure subscription and chose the associated storage account and Endpoint file which data will be stored.
Now this server showed be shown in the servers endpoints in your Azure Sync Group.
Please note that:
- Sync Folder on servers shouldn’t be a file system folder.
- Windows Management Framework 5.1 Installed. Windows Management Framework 5.1
- Latest AzureRM PowerShell module Installed. Install Azure PowerShell on Windows with PowerShellGet
- IE Enhanced Security Configuration Turned off.
- You can add only one cloud endpoint per sync group.
- The server can be associated with only one sync group.
- The appropriate package to download and install for Windows Server 2012 R2 is Win8.1AndW2K12R2-KB
Now after checking the above prerequisites open the Sync Agent on the server.
Register the server by choosing the subscription, Resource Group, and Storage Account.
Now the Server will be shown in the Registered servers
Let’s Add the Server Endpoint [This will be the server folder which files will be synced to – from Azure File Sync]
From the Sync Group, click on Add server endpoint, chose the Registered Server and add the Folder Path.
Now data should be synced between that Folder and the Azure Sync Folder in the Storage Account.