Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
For an Azure File Sync agent that is on v20.0 and showing an expiration warning, use this path:
- Verify whether the server has the expiration metadata applied. Run these commands in an elevated PowerShell session:
Check theImport-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll" Get-StorageSyncServerAgentExpirationDatevalue. - If
AgentExpirationDateis empty or not set, test connectivity.
If connectivity problems are reported, fix those first. Auto Update requires the expiration metadata to reach the server.Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll" Test-StorageSyncNetworkConnectivity - Manually install the update if Auto Update or Windows Update did not complete the upgrade. For v20.1:
- It is available through Microsoft Update for servers currently running v20.0.
-
AfsUpdater.exedoes not work for v20.1 installation. - Existing installations can be updated by downloading the package from Microsoft Update or Microsoft Update Catalog and installing it manually.
msiexec.exe /p packagename.msp REINSTALLMODE=OMUS REINSTALL=StorageSyncAgent,StorageSyncAgentAzureFileSync,StorageSyncAgentGuardFilter,StorageSyncAgentUpdater /qb /l\*v KB5056953.log - If the update appears stuck or hangs during install, check for the known
Logman.exeissue. Symptoms include:-
AfsUpdater.exehangs atinstalling updates - installation hangs at
Stopping monitoring agent
- Open Task Manager
- End the LogMan process
- Repeat until all LogMan processes are stopped
- Let the agent update continue
-
- Check whether a restart is blocking completion. Run:
IfImport-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll" Get-StorageSyncServerRebootNeededisTrue, restart the server to complete the upgrade. - If installation still fails, review the installer logs. Default log location when installed on
C::
Look for:C:\Program Files\Azure\StorageSyncAgent\InstallerLog-
AfsAgentInstallfor MSI installs -
AfsUpdaterfor MSP update installs
1603. -
- If the server was upgraded to a different Windows Server version, do not try to reuse the old agent package. The Azure File Sync agent package is OS-specific. For an OS upgrade, the supported path is:
- uninstall the Azure File Sync agent
- restart the server
- upgrade Windows Server
- install the agent package that matches the new OS version
- For expired-agent remediation, avoid these actions:
- Do not unregister the server
- Do not uninstall and reinstall the agent as a first fix
- Do not run
Reset-StorageSyncServer
- If there are no connectivity problems and
AgentExpirationDateis still not set, contact Azure File Sync support.
References: