azure-storage-blob-py
Azure Blob Storage for Python: upload, download and list blobs, manage containers and blob lifecycle.
- Kind
- Skill
- Works with
- Claude Code
- Languages
- Python
- Source
- microsoft/skills @ 2130750147de
- Path
- .github/plugins/azure-sdk-python/skills/azure-storage-blob-py/SKILL.md
- License
- MIT
- Jobs
- Implementation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Azure Blob Storage SDK for Python Client library for Azure Blob Storage — object storage for unstructured data. ## Installation ```bash pip install azure-storage-blob azure-identity ``` ## Environment Variables ```bash AZURE_STORAGE_ACCOUNT_NAME=<your-storage-account> # Required for all auth methods # Or use full URL AZURE_STORAGE_ACCOUNT_URL=https://<account>.blob.core.windows.net # Alternative to account name AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production ``` ## Authentication & Lifecycle > **🔑 Two rules apply to every code sample below:** > > 1. **Prefer `DefaultAzureCredential`.** It works locally (Azure CLI / VS Code / Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account/API keys — they bypass Entra audit and rotation. > - Local dev: `DefaultAzureCredential` works as-is. > - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=<specific_credential>`) to constrain the credential chain to production-safe credentials. …