# Manage Azure File Shares in Python

Teams often need reliable Python code for Azure Files shares, directories, and file transfers. This skill gives ready patterns for authentication, listing, upload, download, copy, and cleanup.

## Install

```bash
npx skillstore add sickn33/azure-storage-file-share-py
```

## Metadata

- Status: approved
- Slug: sickn33-azure-storage-file-share-py
- Skillstore revision: r3
- Version status: missing
- Tree hash: 2cce5c6c48cb7f8ba11f5201f597ccd09e5087168f22651ae2ffc740d2eabc7e
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-storage-file-share-py
- Ref: 5a26d1d61d694db29af9b138c661c1981076d9df
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem, env\_access
- Quality score: 79
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-azure-storage-file-share-py
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-azure-storage-file-share-py/manifest

## Capabilities

- Install the Azure Storage File Share Python package and set connection or identity-based credentials.
- Create and manage file shares, directories, and files with the official Azure clients.
- Upload, download, copy, rename, and delete files in Azure Files.
- List share contents and inspect file or directory properties.
- Handle large files with streaming and chunked transfers.
- Use SAS tokens or DefaultAzureCredential for scoped access.

## Use Cases

- Automate report delivery: A backend engineer uploads generated reports to a share and later downloads them for processing.
- Organize shared project files: A DevOps engineer creates directories, lists files, and removes stale artifacts from a team share.
- Move files between shares: A data engineer copies source files to another Azure Files path before a batch job starts.

## Prompt Templates

### Connect and list a share

```
Use the Azure Storage File Share Python SDK to connect with my environment credentials and list the files in share reports.
```

### Upload a local file

```
Write Python that creates directory exports if needed and uploads ./daily.csv to Azure Files share reports as exports/daily.csv.
```

### Download and inspect a file

```
Download reports/exports/daily.csv from Azure Files, save it locally, and print the file properties after the transfer.
```

### Copy, rename, and clean up

```
Using DefaultAzureCredential, copy source.txt to archive/source.txt, rename the copy, stream a large file in chunks, then delete the original only after a successful copy.
```

## Limitations

- This skill documents the Python SDK. It does not provision Azure resources or manage access policies for you.
- It does not replace Azure portal, CLI, or ARM templates for infrastructure setup.
- Examples assume a valid Azure Files account, share, and credentials already exist.
- It does not cover NFS shares, Storage Explorer workflows, or non-Python clients.

## Best Practices

- Store account URLs and secrets in environment variables or a secret manager. Do not hardcode them.
- Use DefaultAzureCredential or a narrowly scoped SAS token instead of a full account key when possible.
- Stream large files in chunks and confirm successful copies before deleting source files.

## Anti Patterns

- Do not commit connection strings, account keys, or SAS tokens into source control.
- Do not download large files into memory when a chunked stream is available.
- Do not delete or overwrite share files without confirming the target path and a successful copy.

## Security Audit

- Audited at: 2026-08-14T09:16:17.905\+00:00
- Summary: All 51 static findings are false positives caused by documented code fences, Azure endpoint examples, expected file output, environment-based configuration, or descriptive prose. No malicious commands, unauthorized data transfer, prompt injection, or unsafe intent is evidenced in the supplied findings.

## Stats

- Views: 96
- Downloads: 10
- Favorites: 0
- Popularity score: 0
