Copy AZURE VHD to other storage account

#Source storage account
$context1 = new-azurestoragecontext -storageaccountname "name_source_account" -storageaccountkey "key_source_account"

#Destination storage account
$context2 = new-azurestoragecontext -storageaccountname "name_destination_account" -storageaccountkey "key_destination_account"

#Initiate copy this might take a while
Start-AzureStorageBlobCopy -SrcContainer "vhds" -SrcBlob "name_as_found_in_step_one.vhd" -SrcContext $context1 -DestContainer "vhds" -DestBlob "my_destination_name.vhd" -DestContext $context2

 

Source: http://devslice.net/2013/10/moving-a-windows-azure-virtual-machine-to-a-different-data-center/

Share