Skip to content

Rosa/preview cli#9930

Closed
atharvau wants to merge 12 commits into
Azure:mainfrom
manaswita-chichili:rosa/preview-cli
Closed

Rosa/preview cli#9930
atharvau wants to merge 12 commits into
Azure:mainfrom
manaswita-chichili:rosa/preview-cli

Conversation

@atharvau

Copy link
Copy Markdown
Member

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

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Atharva and others added 11 commits May 13, 2026 09:57
The `az workload-orchestration cluster init` command depends on three
az CLI extensions at runtime (connectedk8s, k8s-extension, customlocation).
If any are missing, sub-command invocations fail with opaque errors.

This change adds a Step 0 in `target_prepare()` that ensures all three
extensions are installed before preflight, mirroring the
`azext_vme.utils.check_and_add_cli_extension` pattern.

- common/utils.py: add REQUIRED_CLI_EXTENSIONS, check_and_add_cli_extension,
  ensure_required_cli_extensions. Uses subprocess (not invoke_cli_command)
  so freshly installed extensions are picked up correctly.
- common/target.py: call ensure_required_cli_extensions() at the start of
  target_prepare; record step_results["cli-extensions"] = "Ready" on success
  and surface failures via _print_failure_hint.

Tested end-to-end: removed all 3 extensions, ran the auto-install path,
verified all 3 reinstalled successfully.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…: ..." log

The "Adding N: name1, name2, ..." line was duplicating information the
user just typed and could dump a huge comma-separated list to stdout for
bulk capability-add operations. The subsequent "Done (N total
capabilities)" line already conveys the result.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tall

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add ServiceGroup creation status line (created/reused) with checkmark
in hierarchy create tree output, consistent with Site, Configuration,
and ConfigurationReference lines.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Matches the same cleanup already applied to add-capability.
The '✓ Done' message is sufficient feedback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Both add-capability and remove-capability were printing noisy
'✓ Done (N total capabilities)' messages to stderr. The JSON
response already contains the updated resource — no need for
extra status noise.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 11, 2026 06:18
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Breaking Change Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @atharvau,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

Copilot AI left a comment

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

@yonzhan yonzhan requested a review from necusjz June 11, 2026 07:31
@yonzhan

yonzhan commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

workload orchestration

…e, fix lint issues

- Remove the update command from solution-deployment
- Add example showing multiple targetIds in solution-deployment create
- Fix trailing whitespace in commands.py
- Add linter exclusions for option_length_too_long and parameter_should_not_end_in_resource_group

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants