Skip to content

Commit cf45abb

Browse files
authored
Merge pull request #9408 from MicrosoftDocs/rladbsal-patch-5
Update file-sync-troubleshoot-managed-identities.md
2 parents c31aa25 + badb9ac commit cf45abb

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

support/azure/azure-storage/files/file-sync/file-sync-troubleshoot-managed-identities.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,22 @@ This issue often occurs in the following situations:
183183

184184
When the managed identity changes, the File Sync agent tries to use the new identity, but the Azure File Sync service is still configured to authorize the previous one. This mismatch causes requests to fail with the `ECS_E_AUTH_IDENTITY_NOT_FOUND` error.
185185

186-
To resolve this issue, run the following PowerShell command:
186+
To resolve this issue:
187+
188+
First, ensure the server is configured to use a managed identity.
189+
190+
You can verify this by:
191+
- Checking the **Settings** > **Managed identities** details in your storage sync service, or
192+
- Running the following PowerShell command:
193+
194+
```powershell
195+
Get-AzStorageSyncServer -ResourceGroupName <ResourceGroupName> -StorageSyncServiceName <StorageSyncServiceName>
196+
```
197+
> [!NOTE]
198+
> This error can occur whether the server is using managed identity (MI) or certificate-based authentication, so confirming the identity type is important.
199+
200+
201+
If the server is using managed identity and the identity has changed, run the following command to update the server registration:
187202

188203
```powershell
189204
Set-AzStorageSyncServer -ResourceGroupName <ResourceGroupName> -StorageSyncServiceName <StorageSyncServiceName> -Identity

0 commit comments

Comments
 (0)