[Core] Remove spurious ModuleNotFoundError in VM debug path#33355
Draft
Copilot wants to merge 2 commits into
Draft
[Core] Remove spurious ModuleNotFoundError in VM debug path#33355Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
❌AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/63a384a1-0a43-45ce-98a1-ead47e5716b6 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix ModuleNotFoundError on vm commands with debug flag
[Core] Remove spurious ModuleNotFoundError in VM debug path
May 12, 2026
Collaborator
|
VM |
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.
Related command
az vm list --debugDescription
VM commands under
--debugwere emitting a noisyModuleNotFoundError(azure.mgmt.compute.v2024_03_03) while command execution still succeeded.This PR aligns the Compute profile mapping with the actually shipped SDK module to remove the false traceback.
Profile mapping correction
MGMT_COMPUTEgallery_image_versionsAPI mapping from2024-03-03to2024-03-02inazure.cli.core.profiles._shared.Regression coverage
gallery_image_versionsand verifies the module import succeeds.Testing Guide
Use the repro command:
az vm list --debugExpected: command behavior unchanged, and no debug traceback for missing
azure.mgmt.compute.v2024_03_03.History Notes
[Core]
az vm list --debug: Remove spuriousModuleNotFoundErrorby correcting Computegallery_image_versionsprofile API mapping.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.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
azcliprod.blob.core.windows.net/usr/bin/python python -m unittest azure.cli.core.tests.test_api_profiles(dns block)If you need me to access, download, or install something from one of these locations, you can either: