azure - 将自定义镜像从 Azure 中的一个区域复制到另一个区域时出现错误

标签 azure virtual-machine azure-cli

我正在努力将自定义镜像norteurope区域复制到Azure中的eastus,这样我就可以根据复制的自定义镜像eastus区域创建虚拟机。我正在使用以下 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 复制命令抛出错误并给出以下错误消息:

enter image description here

我正在使用Azure CLI,主要执行以下步骤:

  1. 我在 eastus 中创建了一个名为 playground-demo-rg2 的新资源组
  2. 安装了图像复制扩展,以便从northeurope复制到eastus
  3. 将现有自定义镜像(playground-windows-vm-image-1)源资源组(playground-demo-rg)复制到目标资源组(playground-demo-rg2)

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

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

最佳答案

这是一个 known issue我也面临这个错误。一个新的开放问题是 Github here .

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

或者copy Managed Images with Powershell 。另外,您可以引用this blog将 Azure VM 从区域 A 复制到区域 B。

关于azure - 将自定义镜像从 Azure 中的一个区域复制到另一个区域时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58462346/

相关文章:

azure - 无法使用 Azure CLI 模板创建 SendGrid 资源 - "Invalid subscription identifier provided"

java - 无法在 Mac 中为 Azure SQL 数据库打开端口 1433

c# - Azure 函数上下文

asp.net - 我可以在 IIS 上像正常的 asp.net 项目一样运行云优化版本的 asp.net-vnext 吗?

linux - 在虚拟化环境中使用 DPDK 内核 NIC 接口(interface)

eclipse - IBM JRE 是标准 VM 吗?

node.js - 无法使用 Azure 函数找到模块 grpc_node.node

azure - Azure 上的 Aks Creation 需要很长时间才能收到以下错误消息

windows - 如何在不编写自己的程序的情况下将某些文件上传到 Azure Blob 存储?

sql-server - 从运行在不同虚拟机中的 ASP.NET MVC Web 应用程序执行 SSIS 包