Skip to content

Improve pscloud pool CLI usability#1

Open
DhritiJindal27 wants to merge 23 commits into
mainfrom
cli_improv_azure-cli-extensions
Open

Improve pscloud pool CLI usability#1
DhritiJindal27 wants to merge 23 commits into
mainfrom
cli_improv_azure-cli-extensions

Conversation

@DhritiJindal27

Copy link
Copy Markdown
Owner

Summary

This PR improves the pscloud pool CLI usability by simplifying parameter handling and removing unsupported features.

Changes

1. Removed Unsupported Identity Options

  • Removed --system-assigned and --user-assigned flags
  • These identity types are not supported by PureStorage.Block/storagePools resource type
  • Prevents confusing error messages

2. Made Required Parameters Mandatory

  • --zone / -z (availability zone)
  • --provisioned-bandwidth
  • --reservation-id
  • --subnet-id
  • --vnet-id
  • Now validated client-side before API calls for better error messages

3. Simplified VNet Configuration

  • Changed from complex --vnet-injection object to individual flags
  • Users now use --subnet-id and --vnet-id separately
  • Much more intuitive and consistent with other Azure CLI commands

4. Removed Wait Subcommand

  • Removed az pscloud pool wait command
  • Not needed and inconsistent with other Azure CLIs

5. Updated Documentation

  • Fixed examples to show correct usage with new simplified syntax

Testing

  • Verified parameter validation works correctly
  • Confirmed cleaner error messages for missing required parameters

- Rename -n and --name
- Add --zone and -z
- Flatten --vnet-injection.
- Remove unsupported identity options (--system-assigned, --user-assigned)
- Make required parameters mandatory with client-side validation
  - --zone, --provisioned-bandwidth, --reservation-id
  - --subnet-id, --vnet-id
- Remove wait subcommand for consistency with other Azure CLIs
- Update examples to show cleaner syntax with individual flags
khattartarun and others added 22 commits December 16, 2025 16:49
Azure#9452)

* [Release] Add support for AKS backup configuration modification

* [Release] Update version to 1.8.0 and nit fixes

* azdev style fixes

* Modify AKS backup configuration parameter

* Fix typos and improve error messages for AKS backup configuration handling

* Refactor AKS backup configuration initialization

* Update AKS backup configuration argument options

* Update AKS backup instance configuration in tests
* new generated azure cli for oracle database

* linter exclusion

* tests and recordings

* tests and recordings

* tests and recordings

* examples

* remove secrets

* version update

* add example for db system

* add example for oracle subscription

* removed default

* removed default

* added license to new tests

* tets recordings

* tets recordings

* change logs and readme updated
Co-authored-by: Ketki <ketkinaik@microsoft.com>
* cleanup evals and UTs

* add vendored_sdks

* containerized aks agent

* add UT

* update doc and release history

* fix style check errors

* update chart repo and version

* remove wrong file and update default cluster role rule

* address comments

* dont expose api key in configmap

* add init file for vendored_sdks/azure_mgmt_containerservice

* fix(windows): fix import fcntl failure on windows

* fix(windows): use tempfile library

* fix(windows): pick correct helm.exe in zip for windows

* remove unused import

* bump helm version
* Remove the depedency on OPA

* Bump version

* Organise imports
Co-authored-by: Brian Kimutai <briankimutai@microsoft.com>
* Update endpoint pattern regex for long TLD

2,5 was too limiting for evolving customer requirements (i.e. '.microsoft'). removing the upper bound for TLD length

* change api-version to 2024-09-16-preview from 2024-09-16-preview

* updated test

* updates as per PR guidance

* remove venv

* match version witth setup.py and sort history.rst by latest first

* change release description
- Updated version from 1.0.0b1 to stable 1.0.0 with dual version management
- Removed preview flags from all commands and command groups
- Fixed parameter consistency across commands (--name/-n standardization)
- Updated README documentation to reflect all parameter changes and stable version
- Added version management with separate STABLE_VERSION and PREVIEW_VERSION variables
DhritiJindal27 pushed a commit that referenced this pull request Jan 6, 2026
…ommands for replication (Azure#9493)

* Adding "Migrate" folder to the project

* Added migrate command

* Adding preview tag for commands, moving migration to a seperate folder & update help text.

* Addressing style issues

* addressing the styles and removing the duplicate key

* addressing style issues

* addesssing more style issues

* addressing  inline disable at the specific line

* Added R1702 to the pylint disable comment on the function definition.

* Addressing to disable too many nested blocks R1702

* Fixing test cases and updating version changes

* Add cli fixes (#1)

* Create extension

* Update src/migrate/azext_migrate/__init__.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix import issues

* Update src/migrate/setup.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Small

* Small lint

* Small

* disable lint for this check

* Add json

* Fix licesnse issue

* fix small

* Small

* Get rid of unused variables

* Add service name and code owner

* New version

* Style

* Small

* Update

* Follow standard

* Add suggestions

* Small

* Not preview

* Add flag to become experimental

* Update history

* Fix

* small

* Create get job and remove replication commands

* Add better error handling for jobs command

* Add better messages to remove protected item

* Return job id in remove command

* Move helpers

* Rename get discovered server helper

* Refactor _initialize_replication_infrastructure_helpers

* Refactor new replication

* Refactor jobs

* Refactor delete protected item

* Fix lint issues

* Change release version

* Fix lint issues

* Add fix

* Updae correct version

* Put beta version before

* Fix

* Update

* Fix bifurcation tool issue

* Update amh correctly if not proper

* Use current subscription id if not passed in

* Fix correct location and target resource group creation

* Create list protected items command

* Update versions

* Add __init__.py to all folders

* Create unit tests for get replication

* Update readme with accurate description of commands

* Update readme

* Create tests for jobs and remove commands

* Add more tests to increase coverage to 74%

* Add start migration command

* Address fixes

* Remove doc strings from custom.py

* Add init

* Remove old file locations

* fix failing tests

* Fix secret test

* Fix test

* Fix secret detection

* Fix duplicates

---------

Co-authored-by: Saif Al-Din Ali <saifaldinali@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Saif Al-Din Ali <saif-canada@hotmail.com>
Co-authored-by: Saif Al-Din Ali <saifaldinali@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.