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] Fix #30976: az sig image-version create: Fix missing auxiliary tokens #30977

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["community-gallery-image-id"],
help="The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.",
)
source.id = AAZStrArg(
source.id = AAZResourceIdArg(
options=["id"],
help="The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.",
)
source.virtual_machine_id = AAZStrArg(
source.virtual_machine_id = AAZResourceIdArg(
options=["virtual-machine-id"],
help="The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.",
)
Expand Down Expand Up @@ -388,7 +388,7 @@ def _build_args_gallery_disk_image_source_create(cls, _schema):
cls._args_gallery_disk_image_source_create = AAZObjectArg()

gallery_disk_image_source_create = cls._args_gallery_disk_image_source_create
gallery_disk_image_source_create.id = AAZStrArg(
gallery_disk_image_source_create.id = AAZResourceIdArg(
options=["id"],
help="The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.",
nullable=True,
)
source.id = AAZStrArg(
source.id = AAZResourceIdArg(
options=["id"],
help="The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.",
nullable=True,
)
source.virtual_machine_id = AAZStrArg(
source.virtual_machine_id = AAZResourceIdArg(
options=["virtual-machine-id"],
help="The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.",
nullable=True,
Expand Down Expand Up @@ -457,7 +457,7 @@ def _build_args_gallery_disk_image_source_update(cls, _schema):
)

gallery_disk_image_source_update = cls._args_gallery_disk_image_source_update
gallery_disk_image_source_update.id = AAZStrArg(
gallery_disk_image_source_update.id = AAZResourceIdArg(
options=["id"],
help="The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.",
nullable=True,
Expand Down