{Compute} az vmss start: Migrate to CodeGen based#31909
Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| vmss start | cmd vmss start update parameter instance_ids: added property aaz_type=AAZListArg |
||
| vmss start | cmd vmss start update parameter instance_ids: added property type=List<String> |
||
| vmss start | cmd vmss start update parameter no_wait: added property aaz_type=bool |
||
| vmss start | cmd vmss start update parameter no_wait: added property choices=['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes'] |
||
| vmss start | cmd vmss start update parameter no_wait: added property nargs=? |
||
| vmss start | cmd vmss start update parameter no_wait: added property type=bool |
||
| vmss start | cmd vmss start update parameter resource_group_name: added property aaz_type=string |
||
| vmss start | cmd vmss start update parameter resource_group_name: added property type=string |
||
| vmss start | cmd vmss start update parameter resource_group_name: updated property name from resource_group_name to resource_group |
||
| vmss start | cmd vmss start update parameter vm_scale_set_name: added property aaz_type=string |
||
| vmss start | cmd vmss start update parameter vm_scale_set_name: added property id_part=name |
||
| vmss start | cmd vmss start update parameter vm_scale_set_name: added property type=string |
||
| vmss start | cmd vmss start update parameter vm_scale_set_name: updated property name from vm_scale_set_name to name |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
/azp run |
|
Commenter does not have sufficient privileges for PR 31909 in repo Azure/azure-cli |
|
/azp list |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 31909 in repo Azure/azure-cli |
|
Azure Pipelines successfully started running 3 pipeline(s). |
3170d4b to
708e6f7
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the az vmss start command from custom implementation to CodeGen based implementation. The change replaces the manually written command with an auto-generated AAZ (Azure CLI Auto-Generated) command structure.
- Removes the custom
start_vmssfunction and replaces it with a CodeGen-basedVMSSStartclass - Adds auto-generated command implementation in the AAZ module
- Updates imports and command registration to use the new implementation
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py | Adds new VMSSStart class that extends the auto-generated Start class with custom logic for handling instance IDs |
| src/azure-cli/azure/cli/command_modules/vm/custom.py | Removes the old start_vmss function implementation |
| src/azure-cli/azure/cli/command_modules/vm/commands.py | Removes the custom command registration for vmss start |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_start.py | New auto-generated command implementation file |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/init.py | Adds import for the new start command |
| src/azure-cli/azure/cli/command_modules/vm/_params.py | Removes vmss start from the parameter scope list |
| src/azure-cli/azure/cli/command_modules/vm/_help.py | Removes the manual help documentation for vmss start command |
az vmss start: Migrate to CodeGen based
aec792a to
7a39a3f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
please make sure to push the latest changes to aaz repo. |
Yes this has been done |
Related command
az vmss startDescription
aaz PR: Azure/aaz#824
Testing Guide
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 featureThis 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.