Reputation: 525
We have a azure blob
location, in that blob we have two containers one is "container_one
" and "container_two
".
I need to copy a file from one container to 2nd container.
Can you please help me how to achieve this functionality in c#
.
Upvotes: 0
Views: 2362
Reputation: 24138
As @ZhaoxingLu-Microsoft said, you can use the core data movement framework Azure Storage dotNet Data Movement
of tool AzCopy to copy a file from one container to another.
There is a offical sample on GitHub, please refer to the function BlobCopySample
to rewrite for satisfing your needs. The core code in the function is using the function TransferManager.CopyAsync
, please refer to the method list of class TransferManager
to know it.
Upvotes: 0
Reputation: 6467
Please try command line tool AzCopy or its library core Azure Storage Data Movement Library. They can achieve blob copy in very high performance and support pausing/resuming.
Upvotes: 1