问题描述
我在Azure区域(加拿大中部)的Azure映像中有一个(系统准备/通用的)服务器模板.我想用它在其他Azure区域(美国中部)中创建Azure VM.它不起作用.
I have a (sysprepped/generalized) server template in an Azure Image in an Azure region (Canada Central). I would like to use it to create an Azure VM in a different Azure region (Central US). It doesn't work.
因此,我需要Azure映像也要驻留在美国中部.如何将我的Azure映像从一个Azure区域复制到另一个?
So, I need that Azure Image to also reside in Central US. How can I copy my Azure image from one Azure region to another?
推荐答案
您可以使用azure cli扩展以在区域之间复制图像
You can use azure cli extension to copy images between region
az extension add --name image-copy-extension
az image copy --source-resource-group mySources-rg --source-object-name myImage --target-location uksouth northeurope --target-resource-group "images-repo-rg" --cleanup
**有一种在区域之间共享图像的新方法,共享图片库.
**There is a new way to share images between regions, Shared Image Gallery.
您可以使用-target-regions
选项决定哪些区域可以访问该图像.
You can decide which regions will have access to the image with the --target-regions
option.
这篇关于如何将Azure映像从一个区域复制到另一区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!