Open msjo66 opened 2 months ago
@msjo66 - Thanks for your submission. The plan variable is independent of the source image variables. So, if you have an input for the plan variable the module will attempt to implement it. Since you are successful when deploying in the portal, the way I typically duplicate that in terraform is to export the ARM template by selecting the Download a template for automation
link prior to selecting the Create
button in the portal experience. You can then determine which source image and plan values it is using to be successful by examining the json that is generated.
I've exactly tried what you recommend before issue raised. But terraform said '... requires Plan information in the request.' As I mentioned earlier, The image exists in other subscription's gallery and I have read permission, not the public nor private marketplace. Could you reproduce same condition?
@msjo66 - I'll try to reproduce this by creating a vm from a similar gallery image. Do you know which barracuda image the custom image was sourced from so I can try to get as close to your configuration as possible? Also, can you confirm whether this is a gov tenant or a commercial one?
Check for previous/existing GitHub issues
Issue Type?
I'm not sure
(Optional) Module Version
0.15.1
(Optional) Correlation Id
No response
Description
I've tried to provision a VM with above HCL. but the following error log returns
the referenced image and the gallery is owned by my colleague(another team developer) and I have read permission. Same error returns with following plan argument. I can provision vm using portal and the following plan argument is in the ARM template of the successfully provisioned vm. Is 'plan' argument applied with 'source_image_resource_id' argument?