{Compute} az vmss/vm: Update Open Capacity Reservation validation error message - #34051
Merged
Merged
Conversation
microsoft-github-policy-service
Bot
requested review from
Julie Zhu (yanzhudd) and
Yong Zhang (yonzhan)
September 9, 2026 23:22
Contributor
There was a problem hiding this comment.
🟢 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=trueconflict 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.
Collaborator
|
Compute |
Julie Zhu (yanzhudd)
approved these changes
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation — ️✔️ All clear
Related command
az vm create/updateaz vmss create/updateDescription
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.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.