-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{Compute} az sig image-version create
: Change --virtual-machine
parameter map to new VM backend field
#28627
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4782,6 +4782,8 @@ def create_image_version(cmd, resource_group_name, gallery_name, gallery_image_n | |
source = os_disk_image = data_disk_images = None | ||
if managed_image is not None: | ||
source = GalleryArtifactVersionFullSource(id=managed_image) | ||
if virtual_machine is not None: | ||
source = GalleryArtifactVersionFullSource(virtual_machine_id=virtual_machine) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accord to the |
||
if os_snapshot is not None: | ||
os_disk_image = GalleryOSDiskImage(source=GalleryDiskImageSource(id=os_snapshot)) | ||
if data_snapshot_luns and not data_snapshots: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue mentioned the min API version is 2023-07-03. Should we wrap the code with min_api check?

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,added.