{"id":5577,"library":"azure-mgmt-datalake-store","title":"Azure Data Lake Store Management","description":"This library provides management capabilities for Azure Data Lake Store Gen1 accounts. It is an older 'Track 1' SDK. The latest version is 0.5.0, released in 2017, and the library is no longer actively maintained. The underlying Azure Data Lake Store Gen1 service was retired on February 29, 2024.","status":"deprecated","version":"0.5.0","language":"en","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python","tags":["azure","cloud","management","data lake","deprecated","track1"],"install":[{"cmd":"pip install azure-mgmt-datalake-store","lang":"bash","label":"Install library"}],"dependencies":[{"reason":"Common Azure utilities and base classes for older SDKs.","package":"azure-common"},{"reason":"Microsoft Azure Autorest-generated REST client runtime for older SDKs.","package":"msrestazure"},{"reason":"Namespace package for older Azure management SDKs.","package":"azure-mgmt-nspkg"}],"imports":[{"symbol":"DataLakeStoreAccountManagementClient","correct":"from azure.mgmt.datalake.store import DataLakeStoreAccountManagementClient"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.datalake.store import DataLakeStoreAccountManagementClient\n\n# NOTE: Azure Data Lake Store Gen1 service was retired on February 29, 2024.\n# This code will likely fail unless you are interacting with a pre-existing,\n# legacy resource which might still be minimally accessible.\n# For new development, consider Azure Data Lake Storage Gen2 with azure-mgmt-storage or azure-storage-blob.\n\n# Your Azure subscription ID\nsubscription_id = os.environ.get(\"AZURE_SUBSCRIPTION_ID\", \"YOUR_SUBSCRIPTION_ID\")\n\nif not subscription_id or subscription_id == \"YOUR_SUBSCRIPTION_ID\":\n    raise ValueError(\"Please set the AZURE_SUBSCRIPTION_ID environment variable.\")\n\n# Authenticate with Azure. DefaultAzureCredential attempts various methods (e.g., Azure CLI, environment variables).\n# While DefaultAzureCredential is a modern 'Track 2' credential, it can often work with 'Track 1' management clients.\ncredential = DefaultAzureCredential()\n\n# Create the Data Lake Store management client\nclient = DataLakeStoreAccountManagementClient(credential, subscription_id)\n\nprint(\"Attempting to list Data Lake Store accounts (Note: Service retired 2024-02-29):\")\ntry:\n    # List Data Lake Store accounts in the subscription\n    accounts = client.account.list()\n    found_accounts = False\n    for account in accounts:\n        print(f\"  Account Name: {account.name}, Location: {account.location}, Provisioning State: {account.provisioning_state}\")\n        found_accounts = True\n    if not found_accounts:\n        print(\"  No Data Lake Store accounts found in this subscription.\")\n\nexcept Exception as e:\n    print(f\"An error occurred while listing accounts: {e}\")\n    print(\"This is expected behavior as the Azure Data Lake Store Gen1 service is retired.\")\n    print(\"You may receive errors such as 'ResourceNotFound' or 'BadRequest'.\")\n\nprint(\"\\nRecommendation: Migrate to Azure Data Lake Storage Gen2 using the azure-mgmt-storage or azure-storage-blob libraries.\")","lang":"python","description":"This quickstart demonstrates how to initialize the `DataLakeStoreAccountManagementClient` and attempt to list Data Lake Store accounts within your Azure subscription. Due to the retirement of the underlying service, this code is primarily for understanding legacy interactions and will likely result in errors."},"warnings":[{"fix":"Migrate your data and applications to Azure Data Lake Storage Gen2 (part of Azure Storage). Use `azure-mgmt-storage` for management and `azure-storage-blob` for data operations with Gen2.","message":"The Azure Data Lake Store Gen1 service, which this library manages, was officially retired on February 29, 2024. Operations against the service will fail. This is the most critical issue.","severity":"breaking","affected_versions":"All versions of the service and library"},{"fix":"For new development, use modern Azure SDKs (e.g., `azure-mgmt-storage` for management, `azure-storage-blob` for data) which follow the 'Track 2' design guidelines and are actively maintained.","message":"This Python library is an older 'Track 1' SDK for Azure and is no longer actively maintained. Its last release was in 2017. It is superseded by newer, modular 'Track 2' Azure SDKs.","severity":"deprecated","affected_versions":"All versions (0.5.0 is the latest)"},{"fix":"Ensure your Python environment uses versions compatible with a 2017-era library (e.g., Python 3.6 or older might be more reliable, though often 3.7+ works with caveats). For authentication with Track 1 SDKs, legacy methods like `ServicePrincipalCredentials` from `azure.common.credentials` might be more 'native', but less secure/convenient than modern `azure.identity`.","message":"Due to its age, this library might have compatibility issues with very recent Python versions or depend on older versions of common Azure dependencies. While `DefaultAzureCredential` from `azure.identity` can often work, it's a modern (Track 2) credential type used with an old (Track 1) client, which can sometimes lead to unexpected behavior.","severity":"gotcha","affected_versions":"0.5.0"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}