{"id":26768,"library":"azure-mgmt-machinelearningservices","title":"Azure Machine Learning Services Management Client Library","description":"Microsoft Azure Machine Learning Services Management Client Library for Python. Provides programmatic management of Azure Machine Learning workspaces, compute resources, and other resources. Latest stable version is 1.0.0 (released alongside other Azure SDK packages). Release cadence is irregular, following Azure SDK for Python patterns.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python","tags":["azure","machine learning","management","sdk","cloud"],"install":[{"cmd":"pip install azure-mgmt-machinelearningservices","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core management SDK","package":"azure-mgmt-core","optional":false},{"reason":"Authentication via DefaultAzureCredential","package":"azure-identity","optional":false}],"imports":[{"note":"Wrong package path, 'machinelearningservices' is the correct module name","wrong":"from azure.mgmt.machinelearning import MachineLearningServicesMgmtClient","symbol":"MachineLearningServicesMgmtClient","correct":"from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient"},{"note":"","wrong":"","symbol":"DefaultAzureCredential","correct":"from azure.identity import DefaultAzureCredential"}],"quickstart":{"code":"from azure.identity import DefaultAzureCredential\nfrom azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient\n\ncredential = DefaultAzureCredential()\nsubscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '')\nclient = MachineLearningServicesMgmtClient(credential, subscription_id)\nworkspaces = client.workspaces.list_by_subscription()\nfor ws in workspaces:\n    print(ws.name)","lang":"python","description":"Create an ML Services management client and list workspaces."},"warnings":[{"fix":"Use the correct import: 'from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient'","message":"The package name is 'azure-mgmt-machinelearningservices', but the Python module is 'azure.mgmt.machinelearningservices'. Common mistake: using 'azure.mgmt.machinelearning'.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to 1.0.0: 'pip install --upgrade azure-mgmt-machinelearningservices'. Check the changelog for model renames.","message":"Older versions (pre-1.0.0) may have used models from 'azure.mgmt.machinelearningservices.models' with different names. Ensure you're using the latest stable version.","severity":"deprecated","affected_versions":"<1.0.0"},{"fix":"Install azure-identity: 'pip install azure-identity'. Ensure environment variables (e.g., AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET) are set.","message":"Authentication requires azure-identity. Without it, DefaultAzureCredential will fail.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install with 'pip install azure-mgmt-machinelearningservices' and import as 'from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient'","cause":"Package not installed or incorrect import path.","error":"ModuleNotFoundError: No module named 'azure.mgmt.machinelearningservices'"},{"fix":"Upgrade to the latest version: 'pip install --upgrade azure-mgmt-machinelearningservices'. Verify the correct client class name in the docs.","cause":"Possible due to outdated package version where the client class name was different.","error":"ImportError: cannot import name 'MachineLearningServicesMgmtClient' from 'azure.mgmt.machinelearningservices'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}