Registry / azure / azure-mgmt-machinelearningcompute

azure-mgmt-machinelearningcompute

JSON →
library0.4.1pypypi✓ verified 22d ago

The Microsoft Azure Machine Learning Compute Management Client Library for Python provides programmatic access to manage compute resources for Azure Machine Learning. It is a very old version (0.4.1) released in early 2019 and is considered abandoned, with its functionality largely superseded by newer Azure Machine Learning SDKs and resource management interfaces.

pip install azure-mgmt-machinelearningcompute
INSTALL
IMPORT
SIG · AZURE-MGMT-MACHINE
A
azure-mgmt-machinelearningcompute
azurepythonv0.4.1
Install
3.9s avg
Import
783ms
Disk
44MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.816s · 44.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.750s · 45MB
44MB installed
● package 44MB
Code
Verified usage

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

MachineLearningComputeManagementClient
from azure.mgmt.machinelearningcompute import MachineLearningComputeManagementClient

Demonstrates instantiating the `MachineLearningComputeManagementClient` using `ServicePrincipalCredentials`, which was common for this library's era. It then attempts to list available management operations. Note that this library manages 'Operationalization Clusters', a concept largely deprecated in modern Azure Machine Learning. Running this example successfully may require a legacy Azure environment and careful credential setup.

import os from msrestazure.azure_active_directory import ServicePrincipalCredentials from azure.mgmt.machinelearningcompute import MachineLearningComputeManagementClient # This library is very old and typically requires legacy authentication methods like Service Principal. # Ensure AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID are set. tenant_id = os.environ.get("AZURE_TENANT_ID", "") client_id = os.environ.get("AZURE_CLIENT_ID", "") client_secret = os.environ.get("AZURE_CLIENT_SECRET", "") subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "") if not all([tenant_id, client_id, client_secret, subscription_id]): print("Please set AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID environment variables.") print("This library uses legacy authentication that may not integrate with modern Azure Identity methods.") else: try: credentials = ServicePrincipalCredentials( client_id=client_id, secret=client_secret, tenant=tenant_id ) client = MachineLearningComputeManagementClient(credentials, subscription_id) print("Attempting to list available operations (might fail if resources are deprecated)...") operations = list(client.operations.list()) if operations: print(f"Found {len(operations)} operations. First one: {operations[0].name}") else: print("No operations found or unable to list.") except Exception as e: print(f"An error occurred: {e}") print("This library is abandoned and its operations may no longer be functional or supported.")
Debug
Known issues
breakingThis library is effectively abandoned. Its last release was 0.4.1 in January 2019. It never reached a 1.0 stable version. Functionality it manages ('Operationalization Clusters') has been deprecated or fundamentally changed in modern Azure Machine Learning, making this library largely non-functional for current use cases.
fix
Migrate to `azure-mgmt-machinelearningservices` (for resource management) or `azure-ai-ml` (for client operations) for current Azure Machine Learning functionalities.
affects: <=0.4.1
gotchaAuthentication for this old library typically relies on legacy methods like `msrestazure.azure_active_directory.ServicePrincipalCredentials` or `msrestazure.azure_active_directory.ApplicationTokenCredentials`. It does not natively support modern authentication mechanisms like `azure-identity.DefaultAzureCredential` without significant effort or custom adaptation, which is generally not recommended for an abandoned library.
fix
If absolutely necessary to use, ensure `msrestazure` is installed and use `ServicePrincipalCredentials` with explicit `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, and `AZURE_CLIENT_SECRET` environment variables. Otherwise, migrate to a current Azure SDK.
affects: <=0.4.1
deprecatedThe concepts and resources managed by `azure-mgmt-machinelearningcompute` (e.g., Operationalization Clusters) are largely obsolete. Azure Machine Learning has evolved significantly, and compute management is now handled through different APIs and resource models.
fix
Utilize the modern Azure Machine Learning SDKs (e.g., `azure-ai-ml`) for data plane operations and `azure-mgmt-machinelearningservices` for management plane operations to interact with current Azure ML compute resources (e.g., Azure Machine Learning Compute instances, Kubernetes clusters, etc.).
affects: <=0.4.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'azure.mgmt.machinelearningcompute'
The `azure-mgmt-machinelearningcompute` package is not installed in the Python environment, or there's an issue with the environment's `PYTHONPATH`.
fix
Install the correct, modern Azure Machine Learning SDK instead, as this library is deprecated and abandoned. For resource management, use `azure-mgmt-machinelearningservices`; for client operations, use `azure-ai-ml`. If you absolutely must use this old library, install it via `pip install azure-mgmt-machinelearningcompute==0.4.1`.
AttributeError: 'DefaultAzureCredential' object has no attribute 'signed_session' (or similar AttributeError related to authentication)
The `azure-mgmt-machinelearningcompute` library is an older SDK that relies on legacy authentication methods from `msrestazure.azure_active_directory` (e.g., `ServicePrincipalCredentials`). It does not support modern authentication classes like `azure-identity.DefaultAzureCredential`.
fix
Migrate to the modern Azure Machine Learning SDKs (`azure-ai-ml` for data plane, `azure-mgmt-machinelearningservices` for management plane) which fully support `azure-identity.DefaultAzureCredential`. If forced to use the old library, you must use legacy `msrestazure` credentials, ensuring `msrestazure` is installed and properly configured with environment variables like `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, and `AZURE_CLIENT_SECRET`.
AttributeError: 'MachineLearningComputeManagementClient' object has no attribute 'operationalization_clusters' (or similar AttributeError accessing resource types)
The concepts and resources managed by `azure-mgmt-machinelearningcompute`, such as 'Operationalization Clusters', are largely obsolete and have been superseded by newer Azure Machine Learning APIs and resource models. Attempting to access these non-existent or renamed resources through the old client will result in an `AttributeError`.
fix
This library is abandoned and its functionality is outdated. Migrate to the modern Azure Machine Learning SDKs (`azure-ai-ml` or `azure-mgmt-machinelearningservices`) to interact with current Azure ML compute resources like Azure Machine Learning Compute instances or Kubernetes clusters, which follow a different resource model and API.
Upgrade
Version history
0.4.1latest on PyPI · released May 29, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
azure-mgmt-machinelearningcompute — pip install azure-mgmt-machinelearningcompute · libregistry