Hello Mahasiva, Ravi (CSW),
Greetings! Welcome to Microsoft Q&A Platform.
I understand that you would like to copy files from the source storage account to the destination storage account while retaining the original LastModifiedDate
of the files.
In the ADF pipeline copy activity. Initially configure the source dataset to read from the source storage account and then configure the destination dataset to write to the destination storage account. In the copy activity settings, try setting the preserveLastModified property to true. This ensures that the LastModifiedDate remains unchanged during the copy operation. refer - https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties?tabs=microsoft-entra-id
If you’re using custom code (e.g., Python), you can use the Blob Storage SDK or make direct REST API calls to read the file from the source storage account and write the same file to the destination storage account, ensuring that the LastModifiedDate property is preserved.
refer similar thread - https://stackoverflow.com/questions/63301721/azure-datafactory-retain-lastmodified-date-when-copying-file.
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.