Registry /
azure / azure-mgmt-managedservices
Install & Compatibility
Where this runs
tested against v6.0.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
muslpy 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.577s · 45.2MB
glibcpy 3.10–3.920 runs
installs and imports cleanly · install 3.7s · import 0.531s · 46MB
44MB installed
● package 44MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ManagedServicesClient
✓ from azure.mgmt.managedservices import ManagedServicesClient
DefaultAzureCredential
✓ from azure.identity import DefaultAzureCredential
✗ from azure.common.credentials import ServicePrincipalCredentials
The credential system was revamped in v6.0.0; use azure-identity classes like DefaultAzureCredential instead of older credential types.
This quickstart demonstrates how to authenticate with Azure using `DefaultAzureCredential` and then list all registration definitions within your subscription using the `ManagedServicesClient`.
import os
from azure.identity import DefaultAzureCredential
from azure.mgmt.managedservices import ManagedServicesClient
# Set your Azure Subscription ID as an environment variable
# AZURE_SUBSCRIPTION_ID = "YOUR_SUBSCRIPTION_ID"
subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "")
if not subscription_id:
raise ValueError("AZURE_SUBSCRIPTION_ID environment variable not set.")
# Authenticate using DefaultAzureCredential. This will try various methods:
# AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID environment variables,
# Managed Identity, Azure CLI, Visual Studio Code, etc.
credential = DefaultAzureCredential()
# Create a ManagedServicesClient
client = ManagedServicesClient(credential, subscription_id)
# List registration definitions (example operation)
print("Listing registration definitions:")
for rd in client.registration_definitions.list():
print(f" - {rd.id}: {rd.name}")
Debug
Known issues
breakingThe credential system underwent a complete revamp in version 6.0.0 (and its beta predecessors). Classes like `azure.common.credentials` or `msrestazure.azure_active_directory` are no longer supported. You *must* use classes from the `azure-identity` package, such as `DefaultAzureCredential`.fixMigrate your authentication code to use `azure-identity`. The `credentials` parameter on the client constructor was also renamed to `credential`. For example: `ManagedServicesClient(credential=DefaultAzureCredential(), ...)`
affects: >=6.0.0
breakingThe `config` attribute is no longer directly available on client objects. Configuration options should be passed as keyword arguments during client initialization.fixInstead of `client.config.enable_logging = True`, pass `enable_logging=True` directly to the client constructor: `ManagedServicesClient(credential, subscription_id, enable_logging=True)`.
affects: >=6.0.0
breakingOperations that previously returned `msrest.polling.LROPoller` for long-running operations now return `azure.core.polling.LROPoller`.fixUpdate any code that expects specific types or methods from `msrest.polling.LROPoller` to use the new `azure.core.polling.LROPoller` interface.
affects: >=6.0.0
deprecatedSupport for Python 2.7 has officially ended for Azure SDK Python packages as of January 1, 2022. While version 6.0.0 might have been tested with older Python 3 versions at release, current active support targets Python 3.8+.fixEnsure your project runs on Python 3.8 or newer to receive continued support and updates.
affects: All versions, regarding Python runtime
gotchaFor long-running operations (LROs), the client will return a poller object. You must call `.result()` on the poller to wait for the operation to complete and get its final result. For asynchronous clients (found in the `aio` namespace), you'll use `await poller.result()`.fixAlways call `.result()` on the returned poller object for LROs to ensure the operation finishes and to retrieve the final resource or status.
affects: All versions
Upgrade
Version history
6.0.1latest on PyPI · released May 18, 2026
Audit
Dependencies
azure-identityrequiredRequired for authenticating with Azure services.