Skip to content

pscloud cli extension#9047

Merged
necusjz merged 8 commits intoAzure:mainfrom
deepakmauryams:pure-onboarding
Aug 13, 2025
Merged

pscloud cli extension#9047
necusjz merged 8 commits intoAzure:mainfrom
deepakmauryams:pure-onboarding

Conversation

@deepakmauryams
Copy link
Copy Markdown
Member

@deepakmauryams deepakmauryams commented Aug 8, 2025


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.

Copilot AI review requested due to automatic review settings August 8, 2025 10:44
@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 @deepakmauryams,
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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 8, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 8, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new Azure CLI extension for managing Pure Storage Cloud Block resources. The extension provides comprehensive management capabilities for both reservations and storage pools through command-line interface.

  • Creates a new CLI extension called "pscloud" for managing Pure Storage Block resources
  • Implements commands for managing reservations (create, update, delete, show, list, wait)
  • Implements commands for managing storage pools (create, update, delete, show, list, wait, health status, AVS status)

Reviewed Changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pscloud/setup.py Package setup configuration for the pscloud extension
src/pscloud/azext_pscloud/init.py Extension loader and command registration infrastructure
src/pscloud/azext_pscloud/commands.py Command table loader entry point
src/pscloud/azext_pscloud/aaz/latest/pscloud/*.py AAZ-generated command implementations for reservation management
src/pscloud/azext_pscloud/aaz/latest/pscloud/pool/*.py AAZ-generated command implementations for storage pool management
src/pscloud/azext_pscloud/tests/latest/test_pscloud.py Initial test scaffold for the extension

Comment thread src/pscloud/setup.py
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 8, 2025

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 8, 2025

@yonzhan yonzhan requested a review from kairu-ms August 8, 2025 23:36
@yonzhan yonzhan requested a review from jsntcy August 8, 2025 23:36
@deepakmauryams
Copy link
Copy Markdown
Member Author

AAZ PR - Azure/aaz#828

@kairu-ms
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Comment on lines +66 to +77
_args_schema.mi_system_assigned = AAZStrArg(
options=["--system-assigned", "--mi-system-assigned"],
arg_group="Identity",
help="Set the system managed identity.",
blank="True",
)
_args_schema.mi_user_assigned = AAZListArg(
options=["--user-assigned", "--mi-user-assigned"],
arg_group="Identity",
help="Set the user managed identities.",
blank=[],
)
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.

Those two argument should has sub commands. @necusjz I thought the aaz-dev could generate them atomically

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.

@deepakmauryams have you removed the subcommands in the workspace ui?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, We have discussed it internally and decided to go live with only 10 commands for which I have added implementations and tests. We do not need Identity subcommands.

@necusjz necusjz merged commit 5ebb206 into Azure:main Aug 13, 2025
24 checks passed
@azclibot
Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ pscloud-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=133670327&view=results

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.

6 participants