【问题标题】:Getting error when copying custom image from one region to another in Azure在 Azure 中将自定义图像从一个区域复制到另一个区域时出错
【发布时间】:2019-10-19 09:42:00
【问题描述】:

我正在将Custom Imagenorteurope 区域复制到Azure 中的eastus,因此我可以根据复制的Custom Imageeastus 区域中创建Virtual Machines。我正在使用以下Azure CLI 命令:

az image copy `
--source-object-name "playground-windows-vm-image-1" `
--source-resource-group 'playground-demo-rg' `
--target-location 'eastus' `
--target-resource-group 'layground-demo-rg2' `
--cleanup

Azure CLI 复制命令引发错误并给我以下错误消息:

我正在使用Azure CLI,主要做了以下步骤:

  1. 我在eastus 中创建了一个名为playground-demo-rg2 的新Resource Group
  2. 安装Image Copy Extension 以便从northeurope 复制到eastus
  3. 将现有的Custom Image(playground-windows-vm-image-1)Source Resource Group(playground-demo-rg) 复制到Target Resource Group(playground-demo-rg2)

我已经上传了完整的PS 脚本,它在执行时抛出了上述错误:

https://github.com/jagjitsingh700/AzureVirtualMachines/blob/master/CopyingCustomImageToRegion.ps1

【问题讨论】:

  • 能否提供详细的错误信息?

标签: azure virtual-machine azure-cli


【解决方案1】:

这是一个known issue,我也面临这个错误。一个新的未解决问题是 Github here

作为一种解决方法,您可以在 Azure 中使用 Shared Image Gallery。使用共享图像库,您可以将图像共享给组织内的不同用户、服务主体或 AD 组。共享图像可以复制到多个区域,以便更快地扩展您的部署。

copy Managed Images with Powershell。此外,您可以参考this blog 将 Azure VM 从区域 A 复制到区域 B。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-25
    相关资源
    最近更新 更多