英文:
How to use Azure VM Image in different regions
问题
我创建了Azure图像库以及其中的图像定义,以便控制我的虚拟机版本。可以在不同的订阅中使用这些图像,但我发现无法在与定义创建不同的地区中使用它。
是否有任何方法可以在多个地区中使用相同的图像,还是需要单独在多个地区复制图像?
我的当前流程是:创建图像的新版本(手动过程),然后让terraform代码更新虚拟机规模集。
现在当我需要支持多个地区时,我需要手动在每个地方创建这些图像吗?
英文:
I created Azure Image Galery and Image definition inside it in order to control versioning of my VMs. It is possible to use those images across different subscriptions, but I found that it is impossible to use it in different regions from where the definition was created.
Are there any ways to use the same image in multiple regions or is it required to separately replicate the image across multiple regions?
My current process is: Create new version of the image (manual process) and let terraform code update VM Scale Set.
Now when I need to support multiple regions, do I need to manually create those images everywhere?
答案1
得分: 1
你可以使用 Azure Compute Gallery 来在多个地区共享你的镜像。你可以将你的镜像添加到画廊中,然后使用更新复制来将你的镜像复制到所有目标地区。这样,你就不需要手动创建这些 镜像在各处。
这里有一个链接可以帮助你。
英文:
you can use Azure Compute Gallery to share your images across multiple regions. You can add your image into the gallery and then use Update replication to copy your image into all the desired target regions. This way, you don’t need to manually create those images everywhere.
Here is link that can help.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论