Azure / Azure/azure-cli

Show Status of All Blobs during az storage blob copy start-batch

Open
#24,032 8 comments 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-codegen-extensibility-squad Auto-Assign Azure CLI Team customer-reported feature-request needs-team-attention Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Hello,

I'm trying to copy data between azure storage accounts and decided to use the **az storage blob copy start-batch** command. I noticed on Microsoft's documentation you can check the status of an individual blob, but you cannot check the overall status of the command, so it feels like I'm just sitting in limbo until it either succeeds or fails.

More detailed command below:

**az storage blob copy start-batch --account-key 'key' --account-name 'name' --destination-container 'container' --source-account-key 'key1' --source-account-name 'name1' --source-container 'container1'.**

I originally tried using azcopy for this but it was painfully slow, so I've been searching for an alternative that might work faster. AzCopy shows the status as it's copying the files and it also shows the speed at which it's copying. This just hangs on the screen, and I'm still waiting for it to complete with no idea if it will finish properly or will time out. Also on the documentation it says you can use **az storage blob show** to check the status of the blobs(screenshot below).

![azcopy batch](https://user-images.githubusercontent.com/75942346/192630569-f1a3443d-0108-49a0-910d-72ad8d7a910e.jpg)

Also, I should add these containers have subdirectories inside them that are being copied over, so even if we could specify a particular directory instead of the only option being a specific blob.

Another note is that the destination storage account is a premium data lake gen 2 account. I don't think that should make a difference, but I wanted to include any & all information.

Did I miss something in the documentation? If not, I think this could be a very useful feature to see the status of the copy operation as a whole.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.