Azure File Sync and Robopy Prevent Recall

rr-4098 1,991 Reputation points
2025-04-17T15:06:13.3066667+00:00

We are currently using Azure File Sync on our File server to tier off older file that have not be updated in a year to Entra and it is working perfectly and have free up almost 1TB of space!!! Since the server is a VM we would like to try and shrink the drive. I ran a robcopy script on a small directory keeping permissions, time stamps etc and it recalled the files. My question is, is there anyway around this i.e maybe stopping the File Sync Agent, disconnecting it from the network etc...

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,403 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Azar 28,000 Reputation points MVP
    2025-04-17T19:28:27.65+00:00

    Hi there rr-4098

    thanks for using QandA Platform

    yes, using Robocopy on tiered files will trigger recalls because it tries to access the full file content, not just metadata. Unfortunately, this is by default. Temporarily stopping the File Sync agent or disconnecting the network might prevent recalls, but Robocopy may still fail if the files aren't locally cached. If you're trying to shrink the drive, it's better to work only with locally pinned files or consider using backup/image tools that respect cloud tiering without triggering recalls.

    If this helps kindly accept the answer thanks much.

    0 comments No comments

  2. Keshavulu Dasari 4,665 Reputation points Microsoft External Staff
    2025-04-22T20:11:17.46+00:00

    Hi rr-4098,

    That seems like a well-thought-out plan. Restoring to a different drive and then changing the drive letters should help you avoid the recall issue. If you run into any challenges or are still running into more issues, let me know in the "comments" and I would be glad to assist you. Good luck with the restore


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.     

    0 comments No comments

Your answer

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