Skip to content
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 @@ -13,6 +13,7 @@

@register_command(
"workload-orchestration solution-template delete-version",
confirmation="Are you sure you want to perform this operation?",
)
class DeleteVersion(AAZCommand):
"""Delete Solution Template Version Resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ListSolutionInstances(AAZCommand):
"""List all solution instances of a solution deployed on a target
:example:
az workload-orchestration solution-instance list -g MyResourceGroup --solution-name MySolution
az workload-orchestration solution-instance list -g MyResourceGroup --solution-version-name MySolution
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we are passing GUID, so neither it should be --solution-name nor --solution-version-name, it should be --solution-template-unique-identifier or --solution-template-identifier

But from user perspective, user should not enter GUID as argument, it should be --solution-template-id, then CLI will fetch ST and get the GUID and then form the required ARM Id to list instances

"""

_aaz_info = {
Expand Down Expand Up @@ -56,7 +56,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.solution_name = AAZStrArg(
options=["--solution-template-name", "--solution"],
options=["--solution-version-name", "--solution"],
help="Name of the solution",
required=True,
fmt=AAZStrArgFormat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ListRevisions(AAZCommand):
"""List all revisions of a solution deployed on a target
:example:
List all revisions of a solution on a target
az workload-orchestration target solution-revision-list -g MyResourceGroup --target-name MyTarget --solution-name MySolution
az workload-orchestration target solution-revision-list -g MyResourceGroup --target-name MyTarget --solution-version-name MySolution
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we are passing GUID, so neither it should be --solution-name nor --solution-version-name, it should be --solution-template-unique-identifier or --solution-template-identifier

But from user perspective, user should not enter GUID as argument, it should be --solution-template-id, then CLI will fetch ST and get the GUID and then form the required ARM Id to list instances

"""

_aaz_info = {
Expand Down Expand Up @@ -49,7 +49,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.solution_name = AAZStrArg(
options=["--solution-template-name", "--solution"],
options=["--solution-version-name", "--solution"],
help="Name of the solution",
required=True,
fmt=AAZStrArgFormat(
Expand Down
Loading