gpt4 book ai didi

azure - 如何从 Azure 中现有的私有(private)打包程序镜像创建新的打包程序镜像

转载 作者:行者123 更新时间:2023-12-03 00:10:09 26 4
gpt4 key购买 nike

我正在使用这两个链接创建一个打包器镜像: https://www.packer.io/docs/builders/azure.html https://learn.microsoft.com/en-us/azure/virtual-machines/linux/build-image-with-packer

我想使用“私有(private)镜像”而不是市场镜像来构建:

"managed_image_resource_group_name": "myResourceGroup",
"managed_image_name": "myPackerImage",

"os_type": "Linux",
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "16.04-LTS",

如何在“image_publisher”、“image_offer”、“image_sku”等中引用我自己的图像?

"os_type": "Linux",
"image_publisher": "myPrivateRepo",
"image_offer": "UbuntuWeb",
"image_sku": "16-1.0",

提前致谢

最佳答案

我自己从未尝试过这个,但它似乎像 this 一样工作。 .

而不是

"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "16.04.0-LTS",

"image_url": "https://my-storage-account.blob.core.windows.net/path/to/your/custom/image.vhd",

关于azure - 如何从 Azure 中现有的私有(private)打包程序镜像创建新的打包程序镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49284404/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com