Open bender-the-greatest opened 2 years ago
I believe I found the solution. Since it appears there is no searching going on for non-marketplace images with image_urn
, it appears image_id
works if you provide the resource ID to:
latest
The documentation is very unclear on this for image_id
, as it seems to imply only the first case above is supported.
:ghost: Brief Description
I am unable to reference
image_urn
when the image is in a Shared Image Gallery.Version
I am not sure,
kitchen diagnose
is not reporting the version. Here is the driver portion ofkitchen diagnose
:Environment
Attempting to run Chef tests against the latest image version in a shared gallery I control, although this issue can be reproduced with
kitchen create
.Scenario
I need to be able to use Test Kitchen to create Azure VMs using the latest image available through a Shared Image Gallery.
Steps to Reproduce
Here is the relevant
kitchen.yml
which does not work when the image is available through a Shared Image Gallery:Running
kitchen create
attempting to reference the image by URN above will produce the error below.Expected Result
I am expecting my instance to be created from my organization's machine image.
Actual Result
There is a much longer error in the stacktrace but here is the relevant part (sanitized to remove actual org info and formatted for readability):