From c2197af5d68f48e848db9196fefcb1af9448c788 Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Mon, 13 Jul 2026 23:13:58 -0700 Subject: [PATCH] fix: declare ssh 2.0.9 minCliCoreVersion 2.71.0 and bump to 2.0.10 ssh 2.0.9 migrated its compute (VM) code to AAZ-based commands, which import azure.cli.command_modules.vm.operations.vm.VMShow, only present in azure-cli core >= 2.71.0. The extension metadata still declared minCliCoreVersion 2.45.0, so the compatibility resolver offered the 2.0.9 build to older cores where `az ssh vm` crashes with ModuleNotFoundError. Raise azext.minCliCoreVersion to 2.71.0 and ship it under a new version (2.0.10) so `az extension list-versions` re-evaluates compatibility and installs the last compatible build (2.0.8) on cores older than 2.71.0. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01QXwvFKU1BuKiw1hKwr8fwC --- src/ssh/HISTORY.md | 4 ++++ src/ssh/azext_ssh/azext_metadata.json | 2 +- src/ssh/setup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ssh/HISTORY.md b/src/ssh/HISTORY.md index 7e8d3a2d09c..0ae7d64c49d 100644 --- a/src/ssh/HISTORY.md +++ b/src/ssh/HISTORY.md @@ -1,5 +1,9 @@ Release History =============== +2.0.10 +------ +* Raise minimum CLI core version to 2.71.0 to match the AAZ-based compute (VM) commands introduced in 2.0.9 + 2.0.9 ----- * Migrate code from Azure SDK to AAZ based commands for compute operations (VM) diff --git a/src/ssh/azext_ssh/azext_metadata.json b/src/ssh/azext_ssh/azext_metadata.json index 91e03c05b84..109a694c38e 100644 --- a/src/ssh/azext_ssh/azext_metadata.json +++ b/src/ssh/azext_ssh/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": false, - "azext.minCliCoreVersion": "2.45.0" + "azext.minCliCoreVersion": "2.71.0" } \ No newline at end of file diff --git a/src/ssh/setup.py b/src/ssh/setup.py index ce838f7ffc0..9ca88145188 100644 --- a/src/ssh/setup.py +++ b/src/ssh/setup.py @@ -7,7 +7,7 @@ from setuptools import setup, find_packages -VERSION = "2.0.9" +VERSION = "2.0.10" CLASSIFIERS = [ 'Development Status :: 4 - Beta',