Skip to content

Commit 17dd176

Browse files
authored
Merge pull request #113401 from chris-wituchowski/patch-2
Update afsdiag section for v11 changes
2 parents 117130e + e3448cc commit 17dd176

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

articles/storage/files/storage-sync-files-troubleshoot.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,25 @@ If you encounter issues with Azure File Sync on a server, start by completing th
12441244
3. Verify the Azure File Sync filter drivers (StorageSync.sys and StorageSyncGuard.sys) are running:
12451245
- At an elevated command prompt, run `fltmc`. Verify that the StorageSync.sys and StorageSyncGuard.sys file system filter drivers are listed.
12461246

1247-
If the issue is not resolved, run the AFSDiag tool:
1247+
If the issue is not resolved, run the AFSDiag tool and send its .zip file output to the support engineer assigned to your case for further diagnosis.
1248+
1249+
For Agent Version v11 and Later:
1250+
1251+
1. Open an elevated PowerShell window, and then run the following commands (press Enter after each command):
1252+
1253+
> [!NOTE]
1254+
>AFSDiag will create the output directory and a temp folder within it prior to collecting logs and will delete the temp folder after execution. Specify an output location which does not contain data.
1255+
1256+
```powershell
1257+
cd "c:\Program Files\Azure\StorageSyncAgent"
1258+
Import-Module .\afsdiag.ps1
1259+
Debug-AFS -OutputDirectory C:\output -KernelModeTraceLevel Verbose -UserModeTraceLevel Verbose
1260+
```
1261+
1262+
2. Reproduce the issue. When you're finished, enter **D**.
1263+
3. A .zip file that contains logs and trace files is saved to the output directory that you specified.
1264+
1265+
For Agent Version v10 and Earlier:
12481266
1. Create a directory where the AFSDiag output will be saved (for example, C:\Output).
12491267
> [!NOTE]
12501268
>AFSDiag will delete all content in the output directory prior to collecting logs. Specify an output location which does not contain data.

0 commit comments

Comments
 (0)