azure - 在 Azure 中将自定义图像从一个区域复制到另一个区域时出错
问题描述
我正在将 a Custom Image
from norteurope
region 复制到in eastus
,Azure
因此我可以根据复制的. 我正在使用以下命令:Virtual Machines
eastus
Custom Image
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
并且主要做了以下步骤:
- 我
Resource Group
用名字创建了一个新playground-demo-rg2
的eastus
- 安装
Image Copy Extension
以便从复制northeurope
到eastus
- 将现有的
Custom Image(playground-windows-vm-image-1)
from复制Source Resource Group(playground-demo-rg)
到Target Resource Group(playground-demo-rg2)
我已经上传了PS
在执行时抛出上述错误的完整脚本:
https://github.com/jagjitsingh700/AzureVirtualMachines/blob/master/CopyingCustomImageToRegion.ps1
解决方案
这是一个已知问题,我也面临这个错误。一个新的开放问题是 Github here。
作为一种解决方法,您可以使用Azure 中的共享图像库。使用共享图像库,您可以将图像共享给组织内的不同用户、服务主体或 AD 组。共享图像可以复制到多个区域,以便更快地扩展您的部署。
或使用 Powershell 复制托管图像。此外,您可以参考此博客将 Azure VM 从区域 A 复制到区域 B。
推荐阅读
- pure-function - 关于纯函数中的“可测试结果”
- python - 无法使用 Python Selenium 和 shadowRoot.querySelector() 定位特定元素
- c++ - 比 case 语句更快速地对行和列信息进行简单跟踪
- python - 如何将 {{ }} 从数据库发送到烧瓶 jinja2
- kotlin - 使用 kotlin 进行函数式编程 - 避免使用 var
- flutter - 错误状态:在颤振消费者组件中找不到 ProviderScope
- javascript - 如何使用js获取真实的屏幕尺寸(屏幕分辨率)
- c++ - SDL 未与 Xcode 中的项目一起编译
- sql-server - WITH AS 使用 UNION 和 GROUP BY
- apache-flink - 按进程时间窗口分组不会发出任何结果