Search code examples
c#.netazureazure-storageazure-table-storage

Copy Azure Storage Tables in C#


Thanks to Azcopy, it is quite easy to transfer data between different azure storage accounts in command line. But I failed to find an efficient way to copy Azure Table Storage in C#. I noticed that there is an Microsoft Azure Storage Data Movement Library that claims to power the Azcopy, but seems there is no direct way to copy tables according to the library reference. Any suggestions to implement that efficiently?

P.S. I have millions of entities to transfer now and then, and I prefer to integrate it in a C# project without using cmd.exe or power shell.


Solution

  • I noticed that there is an Microsoft Azure Storage Data Movement Library that claims to power the Azcopy, but seems there is no direct way to copy tables according to the library reference.

    As you mentioned that there is no method about copy tables in the Microsoft Azure Storage Data Movement Library.

    prefer to integrate it in a C# project without using cmd.exe or power shell.

    About how to operate Azure table storage with C#, we could refer to Get started with Azure Table storage using .NET.

    I have millions of entities to transfer now

    As it is a huge number of entities need to be transfered. Based on my experience, we could use the Azure Data Factory to do that.

    Related resources:

    ETL using azure table storage

    Copy data to or from Azure Table using Azure Data Factory