Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Manage Azure Storage services including Blob, File Shares, Queues, Tables, and Data Lake
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-storage-file-share-py.md
1# File Shares — Python SDK Quick Reference23> Condensed from **azure-storage-file-share-py**. Full patterns (async client,4> snapshots, range operations, copy, SAS tokens)5> in the **azure-storage-file-share-py** plugin skill if installed.67## Install8pip install azure-storage-file-share azure-identity910## Quick Start1112> **Auth:** `DefaultAzureCredential` is for local development. See [auth-best-practices.md](../auth-best-practices.md) for production patterns.1314```python15from azure.storage.fileshare import ShareServiceClient16from azure.identity import DefaultAzureCredential17service = ShareServiceClient("https://<account>.file.core.windows.net", DefaultAzureCredential())18```1920## Best Practices21- Use connection string for simplest setup22- Use Entra ID for production with RBAC23- Stream large files using chunks() to avoid memory issues24- Create snapshots before major changes25- Set quotas to prevent unexpected storage costs26- Use ranges for partial file updates27- Close async clients explicitly28