Hello,
to copy files between Azure file shares I'd recommend using the tool "azcopy". Depending on the configuration and size of your Azure file shares, you could use "azcopy sync" or "azcopy copy" (if you need to use --delete-destination
on large file shares), using SAS authentication.
The following example would copy all changed files, based on their "last modified" date, from the source to the destination directory and remove files that no longer exist in the source directory:
azcopy sync 'https://<source-storage-account-name>.file.core.windows.net/attachment<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/attachment<SAS-token>' --recursive --delete-destination=true
You can find further examples in Microsofts AzCopy documentation: Use AzCopy with Files > Synchronize files