-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Compute} az vm nic: Migrate commands to aaz #32640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
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>
|
There was a problem hiding this 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 pull request migrates Azure CLI VM NIC management commands (az vm nic add, remove, set, show, list) from the legacy mgmt.compute SDK to the new AAZ (Azure CLI Auto-Generated) framework.
Changes:
- Refactored NIC management functions to use AAZ-based VM operations
- Enhanced error handling with proper validation messages
- Added comprehensive test coverage for AAZ-based implementation
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/vm/custom.py |
Migrated all VM NIC commands to use AAZ framework with improved error handling and validation |
src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py |
Added new test class VMMultiNicAAZScenarioTest to test AAZ-based NIC operations |
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_nic_add_remove_set_aaz.yaml |
Test recording file for the new AAZ-based test scenario |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dev dev dev
f30d8ae to
f138192
Compare
Related command
az vm nic add, remove, set, show, listDescription
This pull request migrates vm nic commands from the legacy mgmt.compute sdk to the new aaz framework.
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.