Azure Storage File Data Lake SDK Acceptance Criteria
SDK: azure-storage-file-datalakeRepository: https://github.com/Azure/azure-sdk-for-pythonCommit: mainPurpose: Skill testing acceptance criteria for validating generated code correctness
1. Correct Import Patterns
1.1 Client Imports
✅ CORRECT: Sync Clients
python
from azure.storage.filedatalake import (
DataLakeServiceClient,
FileSystemClient,
DataLakeDirectoryClient,
DataLakeFileClient,
)
from azure.identity import DefaultAzureCredential✅ CORRECT: Async Clients
python
from azure.storage.filedatalake.aio import DataLakeServiceClient
from azure.identity.aio import DefaultAzureCredential1.2 Anti-Patterns (ERRORS)
❌ INCORRECT: Importing from Blob SDK
python
# WRONG - Data Lake Gen2 uses filedatalake, not blob
from azure.storage.blob import BlobServiceClient❌ INCORRECT: Mixing sync and async imports
python
# WRONG - async client with sync credential
from azure.storage.filedatalake.aio import DataLakeServiceClient
from azure.identity import DefaultAzureCredential2. Authentication Patterns
✅ CORRECT: DefaultAzureCredential with DFS endpoint
python
import os
from azure.identity import DefaultAzureCredential
from azure.storage.filedatalake import DataLakeServiceClient
account_url = os.environ["AZURE_STORAGE_ACCOUNT_URL"]
credential = DefaultAzureCredential()
service_client = DataLakeServiceClient(
account_url=account_url,
credential=credential,
)❌ INCORRECT: Hardcoded keys or connection strings
python
# WRONG - avoid account keys/connection strings in skill guidance
service_client = DataLakeServiceClient(
account_url="https://myaccount.dfs.core.windows.net",