Registry / azure / azure-mgmt-managedservices

azure-mgmt-managedservices

JSON →
library6.0.1pypypiunverified

The `azure-mgmt-managedservices` library is the Microsoft Azure Managed Services Client Library for Python, part of the Azure Resource Manager (ARM) generation of management APIs. It allows developers to programmatically interact with Azure Managed Services, such as managing registration definitions and assignments. The current stable version is 6.0.0, released in April 2021. Azure SDKs typically follow a consistent release cadence with updates across various services.

pip install azure-mgmt-managedservices azure-identity
INSTALL
IMPORT
SIG · AZURE-MGMT-MANAGED
A
azure-mgmt-managedservices
azurepythonv6.0.1
Install
3.7s avg
Import
554ms
Disk
44MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.577s · 45.2MB
glibc
py 3.103.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`.
fix
Migrate 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.
fix
Instead 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`.
fix
Update 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+.
fix
Ensure 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()`.
fix
Always 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.
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources