Saturday, October 17, 2015

Move Azure blobs between containers

I finally got some time to tidy up my Azure account. The first thing I wanted to do was to bring all my vms in a single storage, gathering them from various subscriptions. In order to do that I had to copy the vhds (located in the vhds container of each storage account) to their final destination.
This is how I ended up creating the following simple program. It schedules the transfer of the blob and then monitors the status of the blobs in order to get an indication of when the process is done.
If you are more into powershell, you can follow this tutorial which also mentions how to mark the moved vhd as a VM image (Virtual Machines->Disks->Create).

No comments: