-1

I am writing a PowerShell core task in azure pipeline in order to backup my table storage using azcopy, from what I found only the version 7 of azcopy supports the table storage, my host is Linux and I can't find a command that works, I tried this but didn't work :

azcopy -source https://myaccount.table.core.windows.net/tablename --destination https://myaccount.blob.core.windows.net/containername --source-key $input1 --dest-key $input2 

Any idea how the command should be? thanks

Minoo
  • 45
  • 5

1 Answers1

0

Azcopy on linux does not support Azure table storage. For more details, please refer to here and here

enter image description here enter image description here

If you want to use the azcopy to export Azure table, we need to use the azopy V7 on windows. For more details, please refer to here

Regarding how to do that, please refer to here

For example

  1. Install Azcopy

  2. Script

azcopy /Source:https://andyprivate.table.core.windows.net/log /Dest:https://andyprivate.blob.core.windows.net/copy/tablelog /SourceKey:<key> /DestKey:<key> /PayloadFormat:CSV

enter image description here enter image description here

Besides, if your Azure table is very big, I suggest you use Azure data factory. Regarding how to do that, please refer to the official document and the official document.

Jim Xu
  • 21,610
  • 2
  • 19
  • 39
  • Thanks for the reply , yes I tried the version 7 of azcopy for windows, for testing on my local machine and didn't notice that linux version does not support table storage, but our build pipelines are on Linux at the moment .I will look into Azure Data Factory that you suggest. – Minoo Apr 09 '21 at 09:37