add ability to add images to a shared image gallery using packer and custom plan_info, as used in the marketplace images
Recently when trying to create a shared custom Linux image for our company using terraform and packer, we ran into many issues. We were unable create an image version using packer after setting up the shared image gallery and an image definition nor see an image version we manually created in our gallery when using the
az vm image cmd line option.
There is no way to do this unless these images are marketplace images, however there isn't very clear instructions around shared image gallery setup that this is not possible.
We need better docs to clearly say this is/is not supported, or will never be supported. I was told by Azure support we needed to use the
plan_info options in a packer config file when uploading to a shared image gallery. This
plan_info option is not for pushing image versions to a shared image gallery.
The examples I used as help for creating the packer config are here:
Another option might be to ask the CentOS community to provide an image to the azure marketplace like RH and Canonical do. Due to our security policies we are unable to use a 3rd party provided CentOS image.