diff --git a/src/machinelearningservices/CHANGELOG.rst b/src/machinelearningservices/CHANGELOG.rst index f013ca6774c..8ca5d0b08e7 100644 --- a/src/machinelearningservices/CHANGELOG.rst +++ b/src/machinelearningservices/CHANGELOG.rst @@ -1,3 +1,9 @@ +## 2026-01-06 + +### Azure Machine Learning CLI (v2) v 2.41.0 + +- Drop Python 3.7, 3.8 and 3.9 support + ## 2025-11-11 ### Azure Machine Learning CLI (v2) v 2.40.1 diff --git a/src/machinelearningservices/azext_mlv2/manual/custom/deployment_template.py b/src/machinelearningservices/azext_mlv2/manual/custom/deployment_template.py index 8202af7f493..494c1c47a90 100644 --- a/src/machinelearningservices/azext_mlv2/manual/custom/deployment_template.py +++ b/src/machinelearningservices/azext_mlv2/manual/custom/deployment_template.py @@ -32,7 +32,6 @@ def ml_deployment_template_list(cmd, registry_name=None): ml_client, debug = get_ml_client( cli_ctx=cmd.cli_ctx, registry_name=registry_name ) - try: deployment_templates = ml_client.deployment_templates.list() # Handle DeploymentTemplate serialization - try as_dict() first, then _to_dict() @@ -59,7 +58,6 @@ def ml_deployment_template_show(cmd, name, version=None, registry_name=None): ml_client, debug = get_ml_client( cli_ctx=cmd.cli_ctx, registry_name=registry_name ) - try: deployment_template = ml_client.deployment_templates.get(name=name, version=version) # Handle DeploymentTemplate serialization @@ -96,7 +94,6 @@ def ml_deployment_template_create( params_override.append({"name": name}) if version: params_override.append({"version": version}) - if load_deployment_template: deployment_template = load_deployment_template(source=file, params_override=params_override) else: @@ -199,7 +196,6 @@ def ml_deployment_template_archive( ml_client, debug = get_ml_client( cli_ctx=cmd.cli_ctx, registry_name=registry_name ) - try: ml_client.deployment_templates.archive(name=name, version=version) except Exception as err: # pylint: disable=broad-except @@ -218,7 +214,6 @@ def ml_deployment_template_restore( ml_client, debug = get_ml_client( cli_ctx=cmd.cli_ctx, registry_name=registry_name ) - try: ml_client.deployment_templates.restore(name=name, version=version) except Exception as err: # pylint: disable=broad-except diff --git a/src/machinelearningservices/azext_mlv2/manual/requirements.txt b/src/machinelearningservices/azext_mlv2/manual/requirements.txt index def05c6cff7..f8858e8d29a 100644 --- a/src/machinelearningservices/azext_mlv2/manual/requirements.txt +++ b/src/machinelearningservices/azext_mlv2/manual/requirements.txt @@ -2,4 +2,4 @@ cryptography docker azure-mgmt-resourcegraph<9.0.0,>=2.0.0 azure-identity==1.17.1 -azure-ai-ml==1.30.0 \ No newline at end of file +azure-ai-ml==1.31.0 diff --git a/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_advanced.yaml b/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_advanced.yaml new file mode 100644 index 00000000000..1dc6e60b5cb --- /dev/null +++ b/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_advanced.yaml @@ -0,0 +1,42 @@ +name: advanced-deployment-template +version: "2" +description: Advanced deployment template with multiple endpoints for testing +tags: + environment: development + team: ml-platform + cost-center: "12345" +endpoints: + - name: primary + traffic: 80 + deployment: + model: + name: advanced-model + version: "2" + environment: + name: advanced-env + version: "1" + instance_count: 3 + instance_type: Standard_DS3_v2 + code_configuration: + scoring_script: score.py + code: src/ + scale_settings: + type: target_utilization + target_utilization_percentage: 70 + min_instances: 1 + max_instances: 10 + - name: canary + traffic: 20 + deployment: + model: + name: canary-model + version: "1" + environment: + name: canary-env + version: "1" + instance_count: 1 + instance_type: Standard_DS2_v2 + code_configuration: + scoring_script: score_canary.py + scale_settings: + type: default \ No newline at end of file diff --git a/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_basic.yaml b/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_basic.yaml index 629440c886d..aba68f71cfb 100644 --- a/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_basic.yaml +++ b/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_basic.yaml @@ -37,6 +37,6 @@ environment_variables: MODEL_BASE_PATH: /var/azureml-app/azureml-models/tfs-model1/1 MODEL_NAME: half_plus_two ENABLE_INFERENCESERVER_DIAGNOSTICSLOG_AML_VISIBILITY: True -allowed_instance_type: Standard_DS3_v2 Standard_DS4_v2 +allowed_instance_types: Standard_DS3_v2 Standard_DS4_v2 default_instance_type: Standard_DS3_v2 instance_count: 3 \ No newline at end of file diff --git a/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_minimal.yaml b/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_minimal.yaml new file mode 100644 index 00000000000..f09ef381110 --- /dev/null +++ b/src/machinelearningservices/azext_mlv2/tests/test_configs/deployment_template/deployment_template_minimal.yaml @@ -0,0 +1,15 @@ +name: minimal-deployment-template +version: "1" +description: Minimal deployment template for basic testing +endpoints: + - name: simple + traffic: 100 + deployment: + model: + name: simple-model + version: "1" + environment: + name: simple-env + version: "1" + instance_count: 1 + instance_type: Standard_DS1_v2 \ No newline at end of file diff --git a/src/machinelearningservices/setup.py b/src/machinelearningservices/setup.py index a139a2b8938..2d709fec331 100644 --- a/src/machinelearningservices/setup.py +++ b/src/machinelearningservices/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '2.40.1' +VERSION = '2.41.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers @@ -21,9 +21,6 @@ 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12',