Start-AzureStorageBlobCopy vs AzCopy: which one takes lesser time

后端 未结 5 639
不知归路
不知归路 2021-01-04 23:19

I need to move vhds from one subscription to other. I would like to know which one is better option for the same: Start-AzureStorageBlobCopy or AzCopy

5条回答
  •  太阳男子
    2021-01-04 23:48

    In most scenarios, AzCopy is likely to be quicker than Start-AzureStorageBlobCopy due to way you would initiate the copy resulting in fewer calls to Azure API:

    • [AzCopy]1 call for whole container (regardless of blob count)

    vs

    • [Start-AzureStorageBlobCopy] N number of calls due to number of blobs in container.

    Initially I thought it would be same as both appear to trigger same asynchronous copies on Azure side, however on client side this would be directly visible as @Evgeniy has found in his answer.

    In 1 blob in container scenario, theoretically both commands would complete at same time.

    *EDIT (possible workaround): I was able to decrease my time tremendously by:

    1. Removing console output AND
    2. Using the -ConcurrentTaskCount switch, set to 100 in my case. Cut it down to under 5 minutes now.

提交回复
热议问题