Skip to content
drawing

πŸ‘‹ Introduction ​

Managing files across multiple locations while balancing on-premises infrastructure and cloud capabilities can present significant challenges. Azure File Sync offers a streamlined solution by enabling you to centralize file services in Azure while maintaining the performance and compatibility of on-premises servers.

In this article, I will explore how to configure Azure File Sync and install and configure the Azure File Sync agent using the new extension.

πŸ§‘β€πŸ”§ Configuration ​

1. Create Storage account ​

  1. First open the Azure admin Portal β†’ go to Storage accounts and create a new Storage Account with Create.
  2. Now you can enter the Storage Account details you want and click Review + create in the end.
drawing

2. Create File Share ​

  1. Open your created Storage account go to Data Storage β†’ File Shares β†’ and select + File Share.
  2. Now you enter the Name, Access tier and Backup information (if needed) and then select Review + create.
drawing

3. Create Azure Sync Service ​

  1. Now you open the Azure admin portal β†’ Storage Sync Service and click Create.
  2. Next, you need to select your subscription, choose the resource group and provide a name for the Sync Service.

The Sync service needs to be in the same region as your Storage Account.

drawing
  1. Now, open the Storage Sync Service you created β†’ Sync and select Sync groups.
  2. Select Create a sync group, enter a name, subscription and select the storage account, Azure File Share and then click Create.
drawing

4. Install Server Extension with Azure Arc ​

  1. Go to your Azure admin center β†’ Azure Arc and select your Arc-enabled Windows Server from the list.
  2. Go to Extensions and click + Add.
  3. Now select Azure File Sync Agent for Windows.
drawing
  1. Next you can configure the agents settings, then click Review + create and wait for the Deployment to complete.
drawingdrawing

5. Configure Azure File Sync Agent ​

  1. Connect to your server and make sure that the Azure PowerShell module ist installed, because it is needed by the agent to work. If missing, you can install it with the following command:
powershell
install-module az -force

IMPORTANT

For the Agent to work properly, you must disable IE Enhanced Security Configuration in the Server Manager. drawing

  1. After the agent got successfully deployed on the server, you can find the Azure Storage Sync Agent Updater in the list of installed programs.
drawing
  1. Start the Updater and it will check the agent version, then start the Server Registration where you need to Sign in to Azure.
  2. Select your Azure Subscription, Resource Group and Storage Sync Service, then click Register.
drawingdrawing

Alternatively you can use PowerShell for the registration:

powershell
Register-AzStorageSyncServer -ResourceGroupName "<your-resource-group-name>" -StorageSyncServiceName "<your-storage-sync-service-name>"
  1. Next we need to configure the sync in the Azure Portal.
    For that you go back to the Azure admin portal and open the Storage Sync Service you created.
  2. Here you select Sync β†’ Sync groups and open your previously created sync group.
  3. In the Sync group you need to click Add server endpoint and select your server and enter the Path you want to sync.
drawing
  1. Additionally you configure the Cloud Tiering and Initial Sync options.
drawingdrawing
Cloud tiering

Cloud tiering, an optional Azure File Sync feature, reduces local storage needs while preserving on-premises performance. It keeps hot files locally and stores cool files content in an Azure file share, with only their names and folders kept on the server. When accessed, tiered files are automatically retrieved from the cloud.

  1. In the end you click Create and wait for the deployment to complete.
drawingdrawing

Here you can see, how the sync service syncronised the data from the local share to the storage account.

drawingdrawing

INFO

If you want to learn how to unregister a Server, you can learn more here.

πŸ’‘ Conclusion ​

Taking advantage of the Azure File Sync Agent via the Arc extension allows you to connect your on-premises file servers and Azure Files with far less effort. This approach streamlines deployment and configuration while opening the door to more centralised management and flexible scaling. Whether you’re modernising existing infrastructure or looking to simplify hybrid file services, this setup enables you to remain agile without compromising on control. Once in place, you will have a more resilient, cloud-connected file system that is ready to support your organisation's current needs and adapt to future requirements.

Resources