Install & Compatibility
Where this runs
tested against v0.2.0 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.984s · 47MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.4s · import 0.904s · 47MB
46MB installed
● package 46MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DevSpacesManagementClient
✓ from azure.mgmt.devspaces import DevSpacesManagementClient
DefaultAzureCredential
✓ from azure.identity import DefaultAzureCredential
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.
import os
from azure.identity import DefaultAzureCredential
from azure.mgmt.devspaces import DevSpacesManagementClient
# NOTE: Azure Dev Spaces service was retired on May 15, 2021.
# This code will connect to the management plane, but operations
# related to Dev Spaces resources will likely fail as the service is defunct.
# Set environment variables for authentication and subscription ID:
# AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
# AZURE_SUBSCRIPTION_ID
try:
subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "") # Replace with your actual subscription ID or set environment variable
if not subscription_id:
raise ValueError("AZURE_SUBSCRIPTION_ID environment variable not set.")
# Authenticate using DefaultAzureCredential
credential = DefaultAzureCredential()
# Create a Dev Spaces Management Client
client = DevSpacesManagementClient(credential=credential, subscription_id=subscription_id)
print(f"Successfully created Azure Dev Spaces Management Client for subscription: {subscription_id}")
# Example of a client operation (will likely fail due to service retirement):
# You would typically list or manage Dev Spaces resources here.
# For instance:
# print("Attempting to list operations (will likely fail for retired service)...")
# operations = client.operations.list()
# for op in operations:
# print(op.name)
except Exception as e:
print(f"An error occurred: {e}")
print("Ensure AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID are set.")
Debug
Known issues
breakingThe 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.fixMigrate to modern Kubernetes development tools like Bridge to Kubernetes. This library should no longer be used for active development or management.
affects: 0.2.0 and earlier
gotchaThis 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.fixAvoid using this library. If a similar functionality is needed, explore current Azure Kubernetes Service (AKS) development tools and libraries like Bridge to Kubernetes.
affects: 0.2.0
deprecatedAzure Dev Spaces, and by extension this management library, has been fully retired. Microsoft recommends transitioning to Bridge to Kubernetes for similar development scenarios.fixDiscontinue use and migrate to Bridge to Kubernetes or other contemporary AKS development tools.
affects: 0.2.0
Upgrade
Version history
0.2.0latest on PyPI · released May 23, 2019
Audit
Dependencies
azure-identityrequiredRecommended for modern Azure Active Directory authentication.
azure-commonrequiredBase utilities for Azure SDK for Python. Direct package dependency.
msrestazurerequiredAzure-specific extensions for msrest, providing functionality for Azure operations. Direct package dependency.