Skip to content
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

[BUG] Migrate AzureML SDK from v1 to v2 #2066

Closed
SimonYansenZhao opened this issue Feb 20, 2024 · 3 comments
Closed

[BUG] Migrate AzureML SDK from v1 to v2 #2066

SimonYansenZhao opened this issue Feb 20, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@SimonYansenZhao
Copy link
Collaborator

Description

The AzureML SDK used in the testing for Recommenders is of version v1 (named azureml-core):

- name: Install azureml-core and azure-cli on a GitHub hosted server
shell: bash
run: pip install --quiet "azureml-core>1,<2" "azure-cli>2,<3"

from azureml.core.authentication import AzureCliAuthentication
from azureml.core import Workspace
from azureml.core import Experiment
from azureml.core.runconfig import RunConfiguration
from azureml.core.conda_dependencies import CondaDependencies
from azureml.core.script_run_config import ScriptRunConfig
from azureml.core.compute import ComputeTarget, AmlCompute
from azureml.core.compute_target import ComputeTargetException
from azureml.core.workspace import WorkspaceException

Although v1 is still supported, It's better to migrate to version v2 (named azure-ai-ml). See Upgrade to v2 -- Azure Machine Learning

In which platform does it happen?

Azure Machine Learning

How do we replicate the issue?

The SDK is used in all tests for Recommenders

Expected behavior (i.e. solution)

AzureML SDK needs to be upgraded from v1 to v2, and all code in tests/ci/azureml_tests/submit_groupwise_azureml_pytest.py needs to be rewritten using v2.

@SimonYansenZhao SimonYansenZhao added the bug Something isn't working label Feb 20, 2024
@SimonYansenZhao
Copy link
Collaborator Author

In addition, an unresolved issue with the AzureML SDK v1 affects the upgrade of Recommenders is mentioned at #1937 (comment).

@SimonYansenZhao
Copy link
Collaborator Author

@daviddavo
Copy link
Collaborator

It EOLs in September 2025. While more than a year remains, perhaps migrating to v2 would make Python 3.12 support easier too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants