Skip to content

[Compute-fleet] Commands for Launch mode public preview#33566

Open
sabanermsft wants to merge 7 commits into
Azure:devfrom
sabanermsft:feature-Fleet-LaunchMode-PublicPreview
Open

[Compute-fleet] Commands for Launch mode public preview#33566
sabanermsft wants to merge 7 commits into
Azure:devfrom
sabanermsft:feature-Fleet-LaunchMode-PublicPreview

Conversation

@sabanermsft

@sabanermsft sabanermsft commented Jun 16, 2026

Copy link
Copy Markdown
Member

Description

  1. Regenerated commands for compute-fleet public-preview — Regenerated compute-fleet commands, updating examples. AAZ PR: Feature fleet launch mode public preview aaz#1028
  2. Examples for identity commands — Adds usage examples for identity-related CLI commands, improving documentation and discoverability.

Testing Guide
Executed commands locally

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


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

@sabanermsft sabanermsft requested a review from necusjz as a code owner June 16, 2026 05:20
Copilot AI review requested due to automatic review settings June 16, 2026 05:20
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd

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

Thanks for your contribution!

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds/updates Azure CLI AAZ-generated compute-fleet commands to align with the 2026-04-01-preview API surface, including new identity subcommands and a new list-vms command.

Changes:

  • Introduces compute-fleet identity subcommands (show, remove, wait) with generated schemas/operations.
  • Adds compute-fleet list-vms and updates multiple existing commands/examples to compute-fleet naming.
  • Bumps API versions across compute-fleet commands to 2026-04-01-preview and incorporates new Fleet properties (e.g., capacityType, mode, vmNamePrefix, zoneAllocationPolicy).

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/_wait.py New identity wait command wiring GET + schema for Fleet/identity.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/_show.py New identity show command selecting identity subresource from Fleet GET.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/_remove.py New identity remove command performing Fleet GET + identity JSON update + Fleet PUT (LRO).
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/init.py Exports identity command group and commands.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__cmd_group.py Registers compute-fleet identity command group.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_wait.py Updates API version and Fleet schema (new properties + dict typing changes).
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_update.py Updates API version, adds new properties/args, and adjusts dict/prompt handling.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_show.py Updates examples and API version; extends Fleet read schema.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vmss.py Updates examples and API version for VMSS listing.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vms.py New command to list VMs under a Launch mode Fleet with pagination.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list.py Updates examples/API version; extends Fleet list schemas.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_delete.py Updates examples and API version for delete.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_create.py Updates API version, adds new properties/args, and adjusts dict/prompt handling.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/init.py Exports new list-vms command.
src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/__cmd_group.py Removes preview flag and trims command group docstring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +324 to +331
typ=AAZIdentityObjectType
)
_builder.set_prop("userAssigned", AAZListType, ".mi_user_assigned", typ_kwargs={"flags": {"action": "remove"}})
_builder.set_prop("systemAssigned", AAZStrType, ".mi_system_assigned", typ_kwargs={"flags": {"action": "remove"}})

user_assigned = _builder.get(".userAssigned")
if user_assigned is not None:
user_assigned.set_elements(AAZStrType, ".")
Comment on lines 14 to 16
@register_command_group(
"compute-fleet",
is_preview=True,
)
@yonzhan

yonzhan commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Compute-fleet

@yanzhudd

Copy link
Copy Markdown
Contributor

please fix the CI issues

@yanzhudd

Copy link
Copy Markdown
Contributor

could you please add some tests for the newly added commands?

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.

4 participants