Closed sabuncumurat closed 2 weeks ago
Hi 👋 thanks for reaching out.
For general questions we recommend reaching out to the [community forum](https://discuss.hashicorp.com/c/packer) for greater visibility.
As the GitHub issue tracker is only watched by a small subset of maintainers and is really reserved for bugs and enhancements, you'll have a better chance of finding someone who can help you in the forum.
We'll mark this issue as needs-reply to help inform maintainers that this question is awaiting a response.
If no activity is taken on this question within 30 days it will be automatically closed.
If you find the forum to be more helpful or if you've found the answer to your question elsewhere please feel free to post a response and close the issue.
This issue has been migrated to https://github.com/hashicorp/packer-plugin-azure/issues/424 due to the Packer Plugin split.
Please follow the new issue for updates.
I have the following pkr.hcl file:
The above works and version 6.4.0 of the image in question is generated successfully from version 2.2.3, as intended. All good.
When I replace
image_name
andimage_version
in theshared_image_gallery
block with eithercommunity_gallery_image_id
ordirect_shared_gallery_image_id
, the image generation fails:PowerShell session error:
Please note that in the second line of the error above, the Id string after BadRequest is missing components after the galleries part.
If this is not a bug, what is the proper way to use an
image_id
in ashared_image_gallery
block?And a related question - when the above image build fails, three artifacts are left behind and not cleaned up:
I have to remove them manually.
I am under the impression that Packer is supposed to clean up even in case of an error. Is this really the case?
Thank you.