Upgrade azure-mgmt-compute from 34.1.0 to 37.0.1 using SDK's built-in API version#32283
Closed
Copilot wants to merge 7 commits into
Closed
Upgrade azure-mgmt-compute from 34.1.0 to 37.0.1 using SDK's built-in API version#32283Copilot wants to merge 7 commits into
Copilot wants to merge 7 commits into
Conversation
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
Collaborator
|
compute |
…ty changes Co-authored-by: Jing-song <37168047+Jing-song@users.noreply.github.com>
Co-authored-by: Jing-song <37168047+Jing-song@users.noreply.github.com>
Co-authored-by: Jing-song <37168047+Jing-song@users.noreply.github.com>
Co-authored-by: Jing-song <37168047+Jing-song@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for azure-mgmt-compute 37.0.1 SDK version
Upgrade azure-mgmt-compute from 34.1.0 to 37.0.1 with backward-compatible SDK structure support
Oct 20, 2025
… version Co-authored-by: Jing-song <37168047+Jing-song@users.noreply.github.com>
Copilot
AI
changed the title
Upgrade azure-mgmt-compute from 34.1.0 to 37.0.1 with backward-compatible SDK structure support
Upgrade azure-mgmt-compute from 34.1.0 to 37.0.1 using SDK's built-in API version
Oct 20, 2025
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.
Summary
This PR upgrades the
azure-mgmt-computeSDK from version 34.1.0 to 37.0.1 to support the latest Azure Compute API features. The upgrade uses a simplified approach by setting the resource type toNone, allowing the SDK to use its built-in single latest API version, consistent with how other Azure service modules are configured.Background
In azure-mgmt-compute v36.0.0, Microsoft made a significant architectural change:
Before (v34.1.0 and earlier):
azure.mgmt.compute.v2024_11_01.models.VirtualMachinev2019_04_01/,v2020_12_01/, etc.After (v36.0.0+):
azure.mgmt.compute.models.VirtualMachinemodels/andoperations/directoriesChanges Made
1. SDK Version Updates
Updated the following files to use azure-mgmt-compute 37.0.1:
src/azure-cli/setup.pysrc/azure-cli/requirements.py3.{Darwin,Linux,windows}.txt2. Simplified API Version Profile Configuration
Updated
AZURE_API_PROFILESinsrc/azure-cli-core/azure/cli/core/profiles/_shared.py:Why
None?MGMT_STORAGE,MGMT_KEYVAULT,MGMT_AUTHORIZATIONHow It Works
When
ResourceType.MGMT_COMPUTEis set toNone:azure.mgmt.computev20XX_XX_XXsuffix)Testing
✅ All 36 azure-cli-core API profile tests pass
✅ SDK path correctly returns
azure.mgmt.compute(unversioned)✅ Model imports work correctly with the new structure
✅ No changes required to VM module code
Backward Compatibility
This upgrade maintains full backward compatibility:
Documentation
Includes comprehensive upgrade summary (
UPGRADE_SUMMARY.md) with:Advantages
Simplified Maintenance:
Reduced Complexity:
Smaller Package:
Migration Impact
For CLI Users: No impact - commands work exactly as before
For Developers: No code changes needed - simplified configuration automatically uses SDK's built-in versions
For Future SDK Upgrades: Automatic - new API versions are used without config changes
Upgrades to latest Azure Compute APIs while simplifying maintenance and ensuring compatibility.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.