Azure File Sync Agent v15

Brian Søgaard Søby 1 Reputation point
2022-05-20T09:49:27.473+00:00

After Update to Version 15 of Azure FileSync Agent, I tried to find the function Invoke-StorageSyncServerChangeDetection

But is doesn't exist. Any ideas?

204016-asurefilesyncversion.png

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,506 Reputation points Microsoft Employee Moderator
    2022-05-20T12:54:28.593+00:00

    @Brian Søgaard Søby Welcome to Microsoft Q&A Forum, Thank you for posting you query here!

    The Invoke-AzStorageSyncChangeDetection PowerShell cmdlet can only detect a maximum of 10,000 items. For other limitations, see the Invoke-AzStorageSyncChangeDetection documentation.

    Changes made to an Azure file share using REST does not update the SMB last modified time and will not be seen as a change by sync.

    Invoke-AzStorageSyncChangeDetection If run with -DirectoryPath or -Path parameters, the command will not detect the following changes in the Azure file share:

    Files that are deleted, Files that are moved out of the share, Files that are deleted and created with the same name.
    If share-level change detection is invoked, all of these changes will be detected. These changes will also be detected when the scheduled change detection job runs.

    Azure File Sync uses the Windows USN journal feature on Windows Server to immediately detect files that were changed and upload them to the Azure file share. If files changed are missed due to journal wrap or other issues, the files will not sync to the Azure file share until the changes are detected. Azure File Sync has a server change enumeration job that runs every 24 hours on the server endpoint path to detect changes that were missed by the USN journal. If you don't want to wait until the next server change enumeration job runs, you can now use the Invoke-StorageSyncServerChangeDetection PowerShell cmdlet to immediately run server change enumeration on a server endpoint path.

    To immediately run server change enumeration on a server endpoint path, run the following PowerShell commands:

    Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"

    Invoke-StorageSyncServerChangeDetection -ServerEndpointPath <path>

    Note: By default, the server change enumeration scan will only check the modified timestamp. To perform a deeper check, use the -DeepScan parameter.

    Please let me know if the issue still persist, I would like to work closer on this issue.

    ----------

    Please do not forget to 204151-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.