Skip to content

{Compute} az vmss/vm: Update Open Capacity Reservation validation error message - #34051

Merged
Julie Zhu (yanzhudd) merged 1 commit into
Azure:devfrom
william051200:update-error-msg
Sep 10, 2026
Merged

{Compute} az vmss/vm: Update Open Capacity Reservation validation error message#34051
Julie Zhu (yanzhudd) merged 1 commit into
Azure:devfrom
william051200:update-error-msg

Conversation

@william051200

@william051200 William (william051200) commented Sep 9, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

Related command

az vm create/update
az vmss create/update

Description

Update to a more accurate error message.

Testing Guide

History Notes


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

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.

🟢 Approval recommended

The change is limited to a validated error message update and the resulting behavior/message is consistent with the validator’s is True condition for the three-state flag.

Pull request overview

This pull request updates the validation error text shown when users provide conflicting Capacity Reservation options in the VM/VMSS command module, making the guidance more precise for az vm create/update and az vmss create/update.

Changes:

  • Replaces the generic mutually-exclusive-arguments message with a more specific message describing the --disable-capacity-reservation-assignment=true conflict with --capacity-reservation-group.
File summaries
File Description
src/azure-cli/azure/cli/command_modules/vm/_validators.py Updates the MutuallyExclusiveArgumentError message for capacity reservation argument validation to be more specific.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@yonzhan

Copy link
Copy Markdown
Collaborator

Compute

@yanzhudd
Julie Zhu (yanzhudd) merged commit e383eb1 into Azure:dev Sep 10, 2026
64 checks passed
@william051200
William (william051200) deleted the update-error-msg branch September 10, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-observability-squad Auto-Assign Auto assign by bot Compute az vm/vmss/image/disk/snapshot Reservations az reservations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants