0

I have a large blob container in one Azure Storage Account in one Directory (abc.com) that I would like to move to another Storage Account in a completely different Directory (efg.com).

Is the only way to do this via something like AzCopy? If so, should that be done in Azure somehow? (I assume that if I use AzCopy on my local machine I am downloading then uploading all the individual blobs?)

0

I assume what you are trying to do is to move one storage account from one subscription to another one that is in another tenant (Azure AD directory). If that's your case, then it is possible to move the entire storage account, assuming that you have no dependencies such as Virtual Machines in use with their disks within that storage account.

Just follow this guide below:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-move-resources#use-portal

Bear in mind that your user account in Azure must have admin rights to both subscriptions in order to be able to perform the move.

  • I gave a user profile in the abc.com directory contributor rights to a subscription in the xyz.com directory. When I log into the portal in abc.com, I can switch between directories using the menu in the upper right, so I can confirm I have access. However, that move function does not seem to want to cross directories. – alphadogg Feb 5 '18 at 18:41
0

It seems one cannot move a resource between tenants/directories. However, you can transfer a subscription, so:

  1. In the source tenant/directory (abc.com), create a new pay-as-you-go subscription.
  2. Move the resource(s) to this new subscription.
  3. Transfer the subscription to the appropriate Azure user under directory xyz.com.
  4. On the destination side, move the resource(s) as necessary to other subscriptions. If all resources are moved, delete the transfer subscription.
0

AzCopy is a server-side execution unless specified. The following command will allow you to copy all blobs within a Storage Account Container to another Storage Account (Specifying option /S uploads the contents of the specified container recursively.)

AzCopy /Source:https://sourceaccount.blob.core.windows.net/mycontainer1 
/Dest:https://destaccount.blob.core.windows.net/mycontainer2 /SourceKey:key1 /DestKey:key2 /S

Link: https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy#copy-blobs-in-blob-storage

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.