question

Tim-8306 avatar image
1 Vote"
Tim-8306 asked azure-cxp-api edited

Very Slow copy image between regions/locations

I copied a 256 GB VM image from Australia East to US East 2 and it took 11 and a half hours, which seems way too long.

I used the az image copy command with the following switches:

az image copy --source-resource-group RGNAME --source-object-name SONAME --source-type image --target-location eastus2 --target-resource-group RGNAME2 --target-name TNAME --timeout 86400

Should I be using another method to perform the copy?

Is it just that slow?

azure-storage-accountsazure-virtual-machines-images
5 |1600 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.

1 Answer

OlgaOS-msft avatar image
0 Votes"
OlgaOS-msft answered OlgaOS-msft edited

Eleven hours of copying is not fun :)

First, I thought about the azcopy. Unfortunately, this specific scenario is not supported.

Next, the Shared Image Gallery came to my mind .

Were you able to review the image gallery feature before?

According to it:

A Shared Image Gallery simplifies custom image sharing across your organization. Custom images are like marketplace images, but you create them yourself. Custom images can be used to bootstrap deployment tasks like preloading applications, application configurations, and other OS configurations.

The Shared Image Gallery lets you share your custom VM images with others in your organization, within or across regions, within an AAD tenant. Choose which images you want to share, which regions you want to make them available in, and who you want to share them with. You can create multiple galleries so that you can logically group shared images.

The gallery is a top-level resource that provides full Azure role-based access control (Azure RBAC). Images can be versioned, and you can choose to replicate each image version to a different set of Azure regions. The gallery only works with Managed Images.

Source: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/shared-images-portal

Please let me know if that works for you.


5 |1600 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.