Thanks for posting your question in the Microsoft Q&A forum.
This can happen in certain specialized cloud environments. Here are some steps you can take to resolve this issue:
- Instead of relying on auto-discovery, you can manually specify the Azure environment during registration. Use the following PowerShell command:
Register-AzStorageSyncServer -ResourceGroupName "<resource-group-name>" -StorageSyncServiceName "<storage-sync-service-name>" -AzureEnvironment "<AzureEnvironmentName>"
- Ensure that your server has proper internet connectivity, especially to Azure endpoints. The Azure File Sync agent requires outbound Internet connectivity on TCP port 443
- If your organization uses a proxy server, make sure it's properly configured for the Azure File Sync agent. You may need to modify the StorageSyncAgent.exe.config file to include proxy settings
- Ensure you're using the latest version of the Azure File Sync agent.
- Ensure that the account you're using has the necessary permissions to register the server with the Storage Sync Service
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful