Very Slow copy image between regions/locations

Tim 6 Reputation points
2021-03-25T00:41:36.067+00:00

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 Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,160 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,715 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Olga Os - MSFT 5,836 Reputation points Microsoft Employee
    2021-03-25T01:17:09.327+00:00

    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://learn.microsoft.com/en-us/azure/virtual-machines/windows/shared-images-portal

    Please let me know if that works for you.

    0 comments No comments