Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124

Managing files across multiple servers and keeping them in sync has always been a challenge for IT admins. Organizations often struggle with storage sprawl, users saving files in different places, and the need for centralized backup.
That’s where Azure File Sync comes in. With Azure File Sync, you can centralize your organization’s file shares in Azure Files while keeping the flexibility, performance, and compatibility of an on-premises Windows Server.
In this blog, we’ll walk through:
Azure File Sync pricing
What Azure File Sync is
Why it’s useful
How to configure it step by step (Portal + PowerShell)
The role of the Azure File Sync Agent
Cloud tiering explained
Azure File Sync is a Microsoft service that allows you to synchronize file shares on Windows Servers with Azure Files.
Think of it like this: Azure File Sync makes Azure Files the “hub” while your on-premises servers act as “spokes.” All data is stored centrally in Azure Files, but you can cache frequently accessed files locally for performance.
Key Features:
Here’s why organizations adopt Azure File Sync:
Before configuring, make sure you have:
Portal Method:
PowerShell Method:
# Variables
$resourceGroup = "FileSyncRG"
$location = "EastUS"
$storageAccount = "mystorageacctfsync"
$fileShare = "companyfiles"
# Create resource group
New-AzResourceGroup -Name $resourceGroup -Location $location
# Create storage account
New-AzStorageAccount -ResourceGroupName $resourceGroup `
-Name $storageAccount `
-Location $location `
-SkuName Standard_LRS `
-Kind StorageV2
# Get storage context
$ctx = (Get-AzStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccount).Context
# Create file share
New-AzStorageShare -Name $fileShare -Context $ctx
Portal Method:
PowerShell Method:
# Variables
$syncServiceName = "MyFileSyncService"
# Create Azure File Sync service
New-AzStorageSyncService -ResourceGroupName $resourceGroup `
-StorageSyncServiceName $syncServiceName `
-Location $location
Think of the Azure File Sync Agent as the “translator + messenger” installed on your Windows Server.
Without the agent, your server has no idea how to talk to Azure File Sync. With the agent:
Your server can send files up to Azure Files. It can pull down files when needed. It follows the rules you set for tiering and sync.
Basically, it’s the bridge between your local world (on-premises server) and the cloud (Azure Files).
It keeps your local file server and your Azure File Share in sync. Any change you make on-prem (add, delete, update files) → the agent uploads it to Azure. Any change in Azure (say another branch server syncs files) → your local server gets updated.
This ensures your users always see the same set of files, no matter where they are.
After installing the agent, you need to register your server to your Azure File Sync service:
This process generates a Server Resource ID that you’ll later use in PowerShell to add server endpoints.
Get-Service | Where-Object { $_.DisplayName -like "*File Sync*" }
You should see services like:
If these are running, your agent is properly installed.
Portal Method:
PowerShell Method:
# Variables
$syncGroupName = "MySyncGroup"
$serverResourceId = "<Server-Resource-ID>" # Obtained after registering server
$path = "D:\CompanyFiles"
# Create sync group
New-AzStorageSyncGroup -ResourceGroupName $resourceGroup `
-StorageSyncServiceName $syncServiceName `
-SyncGroupName $syncGroupName `
-StorageAccountResourceId (Get-AzStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccount).Id `
-StorageAccountShareName $fileShare
# Add server endpoint
New-AzStorageSyncServerEndpoint -ResourceGroupName $resourceGroup `
-StorageSyncServiceName $syncServiceName `
-SyncGroupName $syncGroupName `
-ServerResourceId $serverResourceId `
-ServerLocalPath $path `
-CloudTiering $true `
-VolumeFreeSpacePercent 20
One of the most powerful features of Azure File Sync is Cloud Tiering.
Example:
You might have a 5 TB file share, but your server only has 1 TB of disk space. With tiering enabled, only the most-used 20–30% of files remain local, while the rest are in Azure.
In PowerShell, tiering is enabled with:
-CloudTiering $true -VolumeFreeSpacePercent 20
This keeps 20% of local disk space free by tiering rarely used files.
Azure File Sync has two main cost components:
👉 Example:
Overall, Azure File Sync is cost-effective compared to buying additional on-premises storage.
D:\CompanyFiles on the server.Azure File Sync bridges the gap between cloud and on-premises file servers, giving you cloud scale + local performance. By combining portal steps with PowerShell automation, and leveraging the Azure File Sync Agent, you gain both flexibility and cost-efficiency.
Features like cloud tiering and predictable pricing make it even more attractive for enterprises looking to optimize storage.