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
Create account storage
From the Azure portal (Azure.microsoft.com), click on Search field and enter Storage. Click on Storage accounts.
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.
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 central blade, click Files shares.
Click on + File Share.
Enter the name of the share and the quota in GB and click on Create.
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
In the Getting Started, click to Download the Azure sync agent link for download the agent.
Launch the agent file on the server then click Next.
Click on Next the following windows then proceed to install the agent.
Click Finish. A window appears to verify that the agent is up to date.
Click on Sign in to register the server. Enter the username and password of your azure global admin in the window that appears.
Use the drop-down lists to select Azure Subscription, Resource Group and Storage Sync Service. Click to Register to lauch register.
Create a synchronization group
From the Azure portal, click on All Resources then on the File sync service previously created.
Click on + Sync group.
Enter the name of the storage group and click on Select storage account.
Select the storage account then 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. 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.
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.
you can run the command to connect the network drive