Registry / azure / azure-mgmt-managementpartner

azure-mgmt-managementpartner

JSON →
library1.0.1pypypi✓ verified 21d ago

The Microsoft Azure ManagementPartner Management Client Library for Python (current version 1.0.0, released in 2020) provides programmatic access to manage Microsoft Partner Network (MPN) IDs. This library is effectively abandoned due to the deprecation of its underlying Azure API, meaning it is not suitable for new development and existing integrations may cease to function.

pip install azure-mgmt-managementpartner azure-identity
INSTALL
IMPORT
SIG · AZURE-MGMT-MANAGEM
A
azure-mgmt-managementpartner
azurepythonv1.0.1
Install
3.7s avg
Import
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.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.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 43.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.7s · import 0.000s · 44MB
42MB installed
● package 42MB
Code
Verified usage

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

ManagementPartnerClient
from azure.mgmt.managementpartner import ManagementPartnerClient
DefaultAzureCredential
from azure.identity import DefaultAzureCredential

This quickstart attempts to retrieve a partner using `ManagementPartnerClient`. However, it's critical to note that the underlying Azure ManagementPartner API is deprecated. The official Azure SDK samples explicitly state this library will not work. This code is provided for reference but is expected to fail at runtime due to API deprecation.

import os from azure.identity import DefaultAzureCredential from azure.mgmt.managementpartner import ManagementPartnerClient # NOTE: This library interacts with a deprecated Azure API. # The official samples state this code will not work as the API is no longer supported. # See: https://github.com/Azure/azure-sdk-for-python/issues/23977 def main(): # Replace with your actual partner ID, if the API were functional partner_id = os.environ.get("MANAGEMENT_PARTNER_ID", "0000000") # Authenticate with Azure # Ensure AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID are set, # or other credentials for DefaultAzureCredential. credential = DefaultAzureCredential() # Create a ManagementPartnerClient. Note: subscription_id is not used for this client. client = ManagementPartnerClient(credential) try: # Attempt to get a partner (this call is expected to fail due to API deprecation) print(f"Attempting to retrieve partner: {partner_id}") partner = client.partner.get(partner_id) print(f"Successfully retrieved partner: {partner.partner_id}") except Exception as e: print(f"An error occurred, likely due to API deprecation: {e}") print("This library is no longer functional due to the underlying API being deprecated.") if __name__ == '__main__': main()
Debug
Known issues
breakingThe underlying Azure ManagementPartner API (used by this library) has been deprecated and is no longer supported by Microsoft. This means the functionality provided by `azure-mgmt-managementpartner` is non-functional for new or existing integrations, and API calls will fail.
fix
Migrate to alternative Azure partner management solutions if available. This library should not be used for any active development.
affects: 1.0.0 and all versions
deprecatedThis Python library itself is effectively abandoned. Its last release (1.0.0) was in May 2020, and there have been no updates since, aligning with the deprecation of the underlying API. It does not follow modern Azure SDK design patterns (Track 2).
fix
Avoid using this library. There is no direct upgrade path as the API is retired. Seek alternative Azure services or solutions.
affects: All versions
gotchaUnlike many `azure-mgmt-*` libraries, `ManagementPartnerClient` does not take a `subscription_id` during instantiation. It operates at a tenant level, which can be confusing for developers accustomed to subscription-scoped resource management.
fix
Be aware that this client is not subscription-bound. If a subscription is mistakenly passed, it will be ignored or cause an error depending on the client constructor.
affects: 1.0.0
gotchaThe library relies on older `msrest` and `azure-common` dependencies. While `azure-identity` for authentication is compatible, the core client itself is not built on the modern `azure-core` framework, which can lead to inconsistencies when integrating with newer Azure SDK components.
fix
No fix, as the library is deprecated. For modern Azure interactions, use Track 2 SDKs built on `azure-core`.
affects: 1.0.0
Upgrade
Version history
1.0.1latest on PyPI · released May 18, 2026
Audit
Dependencies
msrestrequiredCore REST client library for Azure SDKs (older track 1)
azure-commonrequiredCommon utilities for Azure SDKs
azure-mgmt-nspkgrequiredNamespace package for azure-mgmt libraries (older track 1)
azure-identityrequiredModern Azure authentication library, required for quickstart
Agent activity
36 hits · last 30 days
node
28
OpenAI (training)
1
Resources