Skip to content

[Compute] az sig image-version create: Add new parameters --virtual-machine and --image-version to support creating image version from different source#22645

Merged
zhoxing-ms merged 5 commits intoAzure:devfrom
yanzhudd:update_for_diff_source
Jun 1, 2022

Conversation

@yanzhudd
Copy link
Copy Markdown
Contributor

@yanzhudd yanzhudd commented May 27, 2022

Description

Add new parameters --virtual-machine and --image-version to support creating image version from different source
Close #22424

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost requested a review from yonzhan May 27, 2022 03:58
@ghost ghost added the Auto-Assign Auto assign by bot label May 27, 2022
@ghost ghost assigned zhoxing-ms May 27, 2022
@ghost ghost added this to the Jun 2022 (2022-07-05) milestone May 27, 2022
@ghost ghost added the Compute az vm/vmss/image/disk/snapshot label May 27, 2022
@zhoxing-ms zhoxing-ms changed the title {Compute} az sig image-version create --managed-image: Update argument for different source (#22424) [Compute] az sig image-version create: Add new parameters --virtual-machine and --image-version to support creating image version from different source May 27, 2022
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 27, 2022

@yanzhudd good beginning:)

@yanzhudd
Copy link
Copy Markdown
Contributor Author

@yanzhudd good beginning:)

Thanks:)

for scope in ['sig image-version create', 'sig image-version update']:
with self.argument_context(scope) as c:
c.argument('target_regions', nargs='*', validator=process_gallery_image_version_namespace,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since command sig image-version update also called validator=process_gallery_image_version_namespace, we may add a command level validator for command sig image-version update, and then call process_gallery_image_version_namespace in the command level validator

@zhoxing-ms
Copy link
Copy Markdown
Contributor

Nice work! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update "az sig image-version create --managed-image" for different source

3 participants