{"id":3898,"library":"azure-mgmt-devspaces","title":"Azure Dev Spaces Management Client Library for Python","description":"This library provides the Python client for managing Microsoft Azure Dev Spaces. Azure Dev Spaces was a development tool for Kubernetes, but the service has been retired as of May 15, 2021. This library, version 0.2.0, was last released in May 2019 and is no longer actively maintained, reflecting the retirement of the underlying service.","status":"abandoned","version":"0.2.0","language":"en","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/devspaces/azure-mgmt-devspaces","tags":["azure","management","devspaces","deprecated","retired","cloud","kubernetes"],"install":[{"cmd":"pip install azure-mgmt-devspaces azure-identity","lang":"bash","label":"Install with Azure Identity"}],"dependencies":[{"reason":"Recommended for modern Azure Active Directory authentication.","package":"azure-identity","optional":false},{"reason":"Base utilities for Azure SDK for Python. Direct package dependency.","package":"azure-common","optional":false},{"reason":"Azure-specific extensions for msrest, providing functionality for Azure operations. Direct package dependency.","package":"msrestazure","optional":false}],"imports":[{"symbol":"DevSpacesManagementClient","correct":"from azure.mgmt.devspaces import DevSpacesManagementClient"},{"symbol":"DefaultAzureCredential","correct":"from azure.identity import DefaultAzureCredential"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.devspaces import DevSpacesManagementClient\n\n# NOTE: Azure Dev Spaces service was retired on May 15, 2021.\n# This code will connect to the management plane, but operations\n# related to Dev Spaces resources will likely fail as the service is defunct.\n\n# Set environment variables for authentication and subscription ID:\n# AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET\n# AZURE_SUBSCRIPTION_ID\n\ntry:\n    subscription_id = os.environ.get(\"AZURE_SUBSCRIPTION_ID\", \"\") # Replace with your actual subscription ID or set environment variable\n    if not subscription_id:\n        raise ValueError(\"AZURE_SUBSCRIPTION_ID environment variable not set.\")\n\n    # Authenticate using DefaultAzureCredential\n    credential = DefaultAzureCredential()\n\n    # Create a Dev Spaces Management Client\n    client = DevSpacesManagementClient(credential=credential, subscription_id=subscription_id)\n\n    print(f\"Successfully created Azure Dev Spaces Management Client for subscription: {subscription_id}\")\n    # Example of a client operation (will likely fail due to service retirement):\n    # You would typically list or manage Dev Spaces resources here.\n    # For instance:\n    # print(\"Attempting to list operations (will likely fail for retired service)...\")\n    # operations = client.operations.list()\n    # for op in operations:\n    #     print(op.name)\n\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n    print(\"Ensure AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID are set.\")","lang":"python","description":"This quickstart demonstrates how to initialize the Azure Dev Spaces Management Client using `DefaultAzureCredential`. It requires setting Azure Active Directory and subscription ID environment variables for authentication. Due to the retirement of Azure Dev Spaces, actual management operations using this client are expected to fail."},"warnings":[{"fix":"Migrate to modern Kubernetes development tools like Bridge to Kubernetes. This library should no longer be used for active development or management.","message":"The underlying Azure Dev Spaces service was retired on May 15, 2021. Consequently, this management library is for a defunct service and attempting to manage Dev Spaces resources will result in errors as the service no longer functions.","severity":"breaking","affected_versions":"0.2.0 and earlier"},{"fix":"Avoid using this library. If a similar functionality is needed, explore current Azure Kubernetes Service (AKS) development tools and libraries like Bridge to Kubernetes.","message":"This library is very old (v0.2.0, last released May 2019) and has not received updates since the retirement of the Azure Dev Spaces service. It may not be fully compatible with newer Python versions (e.g., Python 3.8+ for which many newer Azure SDKs are built) or the latest Azure SDK guidelines and features.","severity":"gotcha","affected_versions":"0.2.0"},{"fix":"Discontinue use and migrate to Bridge to Kubernetes or other contemporary AKS development tools.","message":"Azure Dev Spaces, and by extension this management library, has been fully retired. Microsoft recommends transitioning to Bridge to Kubernetes for similar development scenarios.","severity":"deprecated","affected_versions":"0.2.0"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}