Skip to content
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: Add new parameters --virtual-machine and --image-version to support creating image version from different source #22645

Merged
merged 5 commits into from
Jun 1, 2022

Conversation

yanzhudd
Copy link
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
Collaborator

yonzhan commented May 27, 2022

@yanzhudd good beginning:)

@yanzhudd
Copy link
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
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
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