{"id":5579,"library":"azure-mgmt-managementpartner","title":"Azure ManagementPartner Management Client Library","description":"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.","status":"abandoned","version":"1.0.0","language":"en","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/managementpartner/azure-mgmt-managementpartner","tags":["Azure","Cloud","Management","Partner","Deprecated"],"install":[{"cmd":"pip install azure-mgmt-managementpartner azure-identity","lang":"bash","label":"Install library and authentication"}],"dependencies":[{"reason":"Core REST client library for Azure SDKs (older track 1)","package":"msrest","optional":false},{"reason":"Common utilities for Azure SDKs","package":"azure-common","optional":false},{"reason":"Namespace package for azure-mgmt libraries (older track 1)","package":"azure-mgmt-nspkg","optional":false},{"reason":"Modern Azure authentication library, required for quickstart","package":"azure-identity","optional":false}],"imports":[{"symbol":"ManagementPartnerClient","correct":"from azure.mgmt.managementpartner import ManagementPartnerClient"},{"symbol":"DefaultAzureCredential","correct":"from azure.identity import DefaultAzureCredential"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.managementpartner import ManagementPartnerClient\n\n# NOTE: This library interacts with a deprecated Azure API.\n# The official samples state this code will not work as the API is no longer supported.\n# See: https://github.com/Azure/azure-sdk-for-python/issues/23977\n\ndef main():\n    # Replace with your actual partner ID, if the API were functional\n    partner_id = os.environ.get(\"MANAGEMENT_PARTNER_ID\", \"0000000\") \n\n    # Authenticate with Azure\n    # Ensure AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID are set,\n    # or other credentials for DefaultAzureCredential.\n    credential = DefaultAzureCredential()\n\n    # Create a ManagementPartnerClient. Note: subscription_id is not used for this client.\n    client = ManagementPartnerClient(credential)\n\n    try:\n        # Attempt to get a partner (this call is expected to fail due to API deprecation)\n        print(f\"Attempting to retrieve partner: {partner_id}\")\n        partner = client.partner.get(partner_id)\n        print(f\"Successfully retrieved partner: {partner.partner_id}\")\n    except Exception as e:\n        print(f\"An error occurred, likely due to API deprecation: {e}\")\n        print(\"This library is no longer functional due to the underlying API being deprecated.\")\n\nif __name__ == '__main__':\n    main()","lang":"python","description":"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."},"warnings":[{"fix":"Migrate to alternative Azure partner management solutions if available. This library should not be used for any active development.","message":"The 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.","severity":"breaking","affected_versions":"1.0.0 and all versions"},{"fix":"Avoid using this library. There is no direct upgrade path as the API is retired. Seek alternative Azure services or solutions.","message":"This 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).","severity":"deprecated","affected_versions":"All versions"},{"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.","message":"Unlike 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.","severity":"gotcha","affected_versions":"1.0.0"},{"fix":"No fix, as the library is deprecated. For modern Azure interactions, use Track 2 SDKs built on `azure-core`.","message":"The 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.","severity":"gotcha","affected_versions":"1.0.0"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}