The `azure-mgmt-hybridcompute` library is the Microsoft Azure Hybrid Compute Management Client Library for Python. It provides classes and methods to programmatically manage Azure Arc-enabled servers and related resources. The current stable version is 9.0.0, and like other Azure SDKs, it follows an active release cadence with regular updates for new features and bug fixes.
pip install azure-mgmt-hybridcompute azure-identityVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to authenticate with Azure using `DefaultAzureCredential` and then list all Azure Arc-enabled machines within a specified subscription. Ensure `AZURE_SUBSCRIPTION_ID` and other necessary Azure authentication environment variables (like `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_TENANT_ID` if using a service principal) are set, or that you are logged in via `az login`.
Migrate to `azure-identity` classes (e.g., `DefaultAzureCredential`) for authentication and update client constructor parameter names. Refer to the Azure SDK for Python authentication documentation.
Update calls to LRO methods to use the `begin_` prefix and handle `HttpResponseError` for API-related exceptions. The `raw` parameter in operation kwargs is also removed; equivalent functionality is available via the `cls` callback.
Review release notes for alternatives or changes in how these functionalities are accessed. It's possible the functionality was integrated into other operations or removed if deprecated upstream.
Upgrade your Python environment to Python 3.8 or a newer supported version.
Always cross-reference with the official Azure SDK for Python documentation and the library's GitHub repository for the latest supported operations. If an operation is missing, check for newer SDK versions or file an issue on the Azure SDK GitHub.