Jump to content
  • entries
    142
  • comments
    0
  • views
    87505

Copy AZURE VHD to other storage account


proximagr

1107 views

 Share

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

 

Track Azure VHD copy process

 


$context = new-azurestoragecontext -storageaccountname "name_destination_account" -storageaccountkey "key_destination_account"

 

Get-AzureStorageBlobCopyState -Blob "file_name.vhd" -Container "vhds" -Context $context

 

source: http://www.e-apostolidis.gr/microsoft/copy-azure-vhd-to-other-storage-account/

 Share

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...