Registry / gcp / azure-mgmt-machinelearningservices

azure-mgmt-machinelearningservices

JSON →
library1.0.0pypypi✓ verified 84d ago

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.

pip install azure-mgmt-machinelearningservices
INSTALL
IMPORT
SIG · AZURE-MGMT-MACHINE
A
azure-mgmt-machinelearningservices
gcppythonv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MachineLearningServicesMgmtClient
from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient
from azure.mgmt.machinelearning import MachineLearningServicesMgmtClient
Wrong package path, 'machinelearningservices' is the correct module name
DefaultAzureCredential
from azure.identity import DefaultAzureCredential

Create an ML Services management client and list workspaces.

from azure.identity import DefaultAzureCredential from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient credential = DefaultAzureCredential() subscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '') client = MachineLearningServicesMgmtClient(credential, subscription_id) workspaces = client.workspaces.list_by_subscription() for ws in workspaces: print(ws.name)
Debug
Known issues
gotchaThe package name is 'azure-mgmt-machinelearningservices', but the Python module is 'azure.mgmt.machinelearningservices'. Common mistake: using 'azure.mgmt.machinelearning'.
fix
Use the correct import: 'from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient'
affects: all
deprecatedOlder 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.
fix
Upgrade to 1.0.0: 'pip install --upgrade azure-mgmt-machinelearningservices'. Check the changelog for model renames.
affects: <1.0.0
gotchaAuthentication requires azure-identity. Without it, DefaultAzureCredential will fail.
fix
Install azure-identity: 'pip install azure-identity'. Ensure environment variables (e.g., AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET) are set.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'azure.mgmt.machinelearningservices'
Package not installed or incorrect import path.
fix
Install with 'pip install azure-mgmt-machinelearningservices' and import as 'from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient'
ImportError: cannot import name 'MachineLearningServicesMgmtClient' from 'azure.mgmt.machinelearningservices'
Possible due to outdated package version where the client class name was different.
fix
Upgrade to the latest version: 'pip install --upgrade azure-mgmt-machinelearningservices'. Verify the correct client class name in the docs.
Upgrade
Version history
1.0.0latest on PyPI · released Jan 4, 2021
Audit
Dependencies
azure-mgmt-corerequiredCore management SDK
azure-identityrequiredAuthentication via DefaultAzureCredential
Agent activity
38 hits · last 30 days
node
34
OpenAI (training)
1
Resources
azure-mgmt-machinelearningservices — pip install azure-mgmt-machinelearningservices · libregistry