Skip to content

2026 03 02 preview cli#9647

Open
frantran wants to merge 19 commits into
Azure:mainfrom
frantran:2026-03-02-preview-cli
Open

2026 03 02 preview cli#9647
frantran wants to merge 19 commits into
Azure:mainfrom
frantran:2026-03-02-preview-cli

Conversation

@frantran
Copy link
Copy Markdown
Member

@frantran frantran commented Mar 3, 2026


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.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Mar 3, 2026

⚠️Azure CLI Extensions Breaking Change Test
⚠️fleet
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd fleet clustermeshprofile sub group fleet clustermeshprofile added
⚠️ 1006 - ParaAdd fleet member list cmd fleet member list added parameter cluster_mesh_profile

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @frantran,
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.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Mar 3, 2026

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 3, 2026

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 yonzhan requested review from kairu-ms and necusjz March 3, 2026 23:29
@yonzhan yonzhan requested a review from jsntcy March 3, 2026 23:29
Comment thread src/fleet/azext_fleet/_help.py Outdated
Comment thread src/fleet/azext_fleet/_help.py Outdated
Comment thread src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/_configuration.py Outdated
@frantran frantran marked this pull request as ready for review March 24, 2026 20:19
Copilot AI review requested due to automatic review settings March 24, 2026 20:19
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 updates the fleet extension to the 2026-03-02-preview Fleet management API, refreshes the vendored SDK accordingly, and introduces new CLI surface area for managing Cluster Mesh Profiles (including a what-if style preview of membership changes).

Changes:

  • Bump extension version to 2.0.0 and update HISTORY.rst for the new preview API.
  • Vendor the v2026_03_02_preview management SDK and wire it up as the extension’s “latest” client.
  • Add new az fleet clustermeshprofile command group plus member filtering support via $filter.

Reviewed changes

Copilot reviewed 51 out of 57 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/fleet/setup.py Bumps extension package version to 2.0.0.
src/fleet/HISTORY.rst Adds 2.0.0 release notes for 2026-03-02-preview / ClusterMesh support.
src/fleet/azext_fleet/custom.py Adds cluster mesh profile commands, what-if logic, and member list filtering.
src/fleet/azext_fleet/commands.py Registers new fleet clustermeshprofile command group.
src/fleet/azext_fleet/_params.py Adds parameters for cluster mesh profile commands and member filtering.
src/fleet/azext_fleet/_help.py Adds help + examples for new commands and new filter option.
src/fleet/azext_fleet/_client_factory.py Updates mgmt client creation (now explicitly sets base_url).
src/fleet/azext_fleet/init.py Updates resource type registration to use no SDK profile mapping.
src/fleet/azext_fleet/tests/latest/test_stages_json.py Updates test imports to v2026_03_02_preview models.
src/fleet/azext_fleet/vendored_sdks/init.py Points vendored SDK to v2026_03_02_preview and aliases models/operations modules.
src/fleet/azext_fleet/vendored_sdks/models.py Removes old re-export shim for v2026_02_01_preview models.
src/fleet/azext_fleet/vendored_sdks/_version.py Removes old SDK version file at vendored_sdks root.
src/fleet/azext_fleet/vendored_sdks/_container_service_fleet_mgmt_client.py Removes old multi-api client implementation.
src/fleet/azext_fleet/vendored_sdks/_configuration.py Removes old shared configuration.
src/fleet/azext_fleet/vendored_sdks/v2026_02_01_preview/py.typed Removes typing marker from previous preview package.
src/fleet/azext_fleet/vendored_sdks/v2026_02_01_preview/operations/_patch.py Removes generated patch file from previous preview package.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/py.typed Adds PEP 561 typing marker for new preview package.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_serialization.py Adds/updates shared serialization module used by generated code.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_patch.py Adds generated patch hook module.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/init.py Adds package init for new preview SDK.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_version.py Adds new preview SDK version constant.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_utils/init.py Adds generated utils package init.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_container_service_fleet_mgmt_client.py Adds ClusterMeshProfiles operations + updates base_url handling and api_version default.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_configuration.py Updates default api_version to 2026-03-02-preview and simplifies config.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/models/_patch.py Updates generated models patch module typing.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/models/_models_py3.py Adds ClusterMesh models + MeshProperties on FleetMember; updates typing + serialization import.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/models/_container_service_fleet_mgmt_client_enums.py Adds ClusterMesh-related enums.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/models/init.py Exposes new ClusterMesh models/enums from package.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_update_runs_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_gates_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_fleets_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_fleet_update_strategies_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_fleet_members_operations.py Adds $filter support to list-by-fleet; updates api-version default.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_fleet_managed_namespaces_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_auto_upgrade_profiles_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_auto_upgrade_profile_operations_operations.py Updates api-version default and serialization import; typing cleanups.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_patch.py Adds generated operations patch hook module.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_cluster_mesh_profiles_operations.py Adds new ClusterMeshProfiles operation group (sync).
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/init.py Exports ClusterMeshProfilesOperations.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/init.py Adds async client package init.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/_patch.py Updates async patch hook typing.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/_configuration.py Updates async config default api_version to 2026-03-02-preview.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/_container_service_fleet_mgmt_client.py Adds ClusterMeshProfiles operations + updates base_url handling (async).
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_update_runs_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_gates_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_fleets_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_fleet_update_strategies_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_fleet_members_operations.py Updates serialization import + typing; supports list-by-fleet filtering.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_fleet_managed_namespaces_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_auto_upgrade_profiles_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_auto_upgrade_profile_operations_operations.py Updates serialization import + typing; api-version alignment.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_patch.py Updates async operations patch hook typing.
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/_cluster_mesh_profiles_operations.py Adds new ClusterMeshProfiles operation group (async).
src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/aio/operations/init.py Exports async ClusterMeshProfilesOperations.

Comment thread src/fleet/azext_fleet/custom.py
Comment thread src/fleet/azext_fleet/custom.py Outdated
Comment thread src/fleet/azext_fleet/_client_factory.py Outdated
Comment thread src/fleet/azext_fleet/custom.py
Comment thread src/fleet/azext_fleet/custom.py
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 24, 2026

@github-actions github-actions Bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Mar 24, 2026
@necusjz
Copy link
Copy Markdown
Member

necusjz commented Mar 27, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Comment thread src/fleet/azext_fleet/_client_factory.py Outdated
Comment thread src/fleet/azext_fleet/custom.py
Comment thread src/fleet/HISTORY.rst Outdated
@github-actions github-actions Bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label May 10, 2026
@frantran
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 9647 in repo Azure/azure-cli-extensions

@yanzhudd
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Comment thread src/fleet/azext_fleet/_help.py Outdated
Comment thread src/fleet/azext_fleet/tests/latest/test_fleet_clustermesh_scenario.py Outdated
Comment thread src/fleet/azext_fleet/tests/latest/test_fleet_clustermesh_scenario.py Outdated
Comment thread src/fleet/azext_fleet/tests/latest/test_fleet_clustermesh_scenario.py Outdated
Comment thread src/fleet/azext_fleet/tests/latest/test_fleet_clustermesh_scenario.py Outdated
Comment thread src/fleet/azext_fleet/tests/latest/test_fleet_clustermesh_scenario.py Outdated
Comment thread src/fleet/azext_fleet/_help.py Outdated
Comment thread src/fleet/azext_fleet/_params.py
Comment thread src/fleet/azext_fleet/custom.py Outdated
@yanzhudd
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@frantran
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 9647 in repo Azure/azure-cli-extensions

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 12, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

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