Skip to content

Commit

Permalink
updated Windows VM source_image_id validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Feb 12, 2020
1 parent 7f68dc6 commit ee2ae8a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ func resourceWindowsVirtualMachine() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: computeValidate.ImageID,
ValidateFunc: validation.Any(
computeValidate.ImageID,
computeValidate.SharedImageID,
computeValidate.SharedImageVersionID,
),
},

"source_image_reference": sourceImageReferenceSchema(true),
Expand Down

0 comments on commit ee2ae8a

Please sign in to comment.