![](https://it-infrastructure.solutions/content/images/2022/07/image-20.png)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
Prerequisites:
- working on-premises DFS Replication environment (see Link)
![](https://it-infrastructure.solutions/content/images/2022/07/image-33.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-34.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-35.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-36.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-37.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-38.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-39.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-40.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-41.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-42.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-43.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-44.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-45.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-46.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-47.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-48.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-49.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-50.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-51.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-52.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-53.png)
Onboarding the first Server....
![](https://it-infrastructure.solutions/content/images/2022/07/image-54.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-55.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-57.png)
$srvName = '<Server>'
$rgName = '<Ressource Group>'
$fsName = 'FileSync1'
New-Item -Type Directory -Path "\\$srvName\c$\Temp" -Force
Copy-Item -Path C:\Temp\StorageSyncAgent_WS2022.msi -Destination "\\$srvName\c$\Temp\" -PassThru
Invoke-Command -ComputerName $srvName -ArgumentList ($rgName, $fsName) {
param($rgName, $fsName)
Install-PackageProvider -Name NuGet -Force;
Install-Module az.StorageSync -Force;
Start-Process -FilePath "C:\Temp\StorageSyncAgent_WS2022.msi" -ArgumentList "/quiet" -Wait;
Connect-AzAccount -UseDeviceAuthentication;
Register-AzStorageSyncServer -ResourceGroupName $rgName -StorageSyncServiceName $fsName | Out-Null;
Write-Output "Script finished"
}
When prompted with a WARNING message to sign in -> sign in ;)
![](https://it-infrastructure.solutions/content/images/2022/07/image-59.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-60.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-61.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-62.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-63.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-64.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-65.png)
Onboard the second Server using the StorageSync Agent Script above...
![](https://it-infrastructure.solutions/content/images/2022/07/image-66.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-67.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-68.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-69.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-70.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-71.png)
Remove DFS Replication
![](https://it-infrastructure.solutions/content/images/2022/07/image-79.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-80.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-81.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-82.png)
We leave the namespace as it is, because we still want to give our users the possibility to access it centrally.
Enable Cloud Tiering
![](https://it-infrastructure.solutions/content/images/2022/07/image-72.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-74.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-75.png)
![](https://it-infrastructure.solutions/content/images/2022/07/image-76.png)
# Cloud Tiering Test using fsutil
Enter-PSSession -computername <Server2>
fsutil file createnew S:\Data\report1.docx 254321098
fsutil file createnew S:\Data\report2.docx 254321098
fsutil file createnew S:\Data\report3.docx 254321098
fsutil file createnew S:\Data\report4.docx 254321098
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
Invoke-StorageSyncCloudTiering -Path S:\Data
![](https://it-infrastructure.solutions/content/images/2022/07/image-78.png)
Look for Files with the attribute L, M, and O, which indicate that the tiering took place.
References:
https://it-infrastructure.solutions/implementing-distributed-file-system-replication/
Deploy Azure File Sync
Learn how to deploy Azure File Sync, from start to finish, using the Azure portal, PowerShell, or the Azure CLI.
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)
Planning for an Azure Files deployment
Understand planning for an Azure Files deployment. You can either direct mount an Azure file share, or cache Azure file shares on-premises with Azure File Sync.
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)