question

PerBuer-1685 avatar image
0 Votes"
PerBuer-1685 asked ·

Can I hand over a blob container in a storage account to another storage account?

Hi.

I'd like to transfer a whole container from one account to another. These are pretty big containers, potentially terabytes of data so I would prefer not to use azCopy (it ads costs, time and possible errors). A handover from one account to another could be more or less race-free as well, so that would be a bonus.

Can it be done or is copying the only option?

Cheers,

Per.

azure-storage-accountsazure-blob-storage
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FelixP-2774 avatar image
0 Votes"
FelixP-2774 answered ·

Following on from the comments, this may help - there’s a sample script in the docs here which migrates all blobs in a source container to a target - it should be fairly easy to filter to the blob container(s) you want to migrate. It contains error handling. If time is an issue, —no-wait is your friend if you have other processes to run.

https://docs.microsoft.com/en-us/previous-versions/azure/storage/storage-common-transfer-between-storage-accounts

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, Felix.

This is helpful. I wish the documentation would state clearly that this isn't possible.

1 Vote 1 ·
FelixP-2774 avatar image
0 Votes"
FelixP-2774 answered ·

Hi, are your storage accounts in the same region? If so there should be no charge for using azCopy - from the docs

Is there any charge for copying data between two file shares on the same storage account within the same region?

No. There is no charge for this process.

https://docs.microsoft.com/en-us/azure/storage/common/storage-migration-faq
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, that helps a bit.

Still would love a way to atomically move a container, though. It takes time to move terabytes of data and I'm not sure how prudent I must be wrt error handling.

0 Votes 0 ·