agentleFS
jonathan-vellajonathan-vella/apex/.github/skills/apex-azure-storage/SKILL.md

apex-azure-storage

Skill216 starsChanged 2 months agoMITView on GitHub

**UTILITY SKILL** — Azure Storage: Blob, File Shares, Queue, Table and Data Lake, including access tiers and lifecycle management. WHEN: "blob storage", "file shares", "queue storage", "table storage", "data lake", "which storage tier", "hot vs cool vs archive", "lifecycle management". DO NOT USE FOR: SQL databases, Cosmos DB (use apex-azure-prepare), Event Hubs / Service Bus messaging.

The file

Files
SKILL.md

Azure Storage Services

Prerequisites

Confirm account, service, authorized operation and data-plane access. Use installed CLI/SDK capabilities; follow the language leaf's version requirements. Obtain separate authorization before uploads, overwrites, lifecycle changes or downloads that replace local files.

Services

ServiceUse WhenCLI
Blob StorageObjects, files, backups, static contentaz storage blob
File SharesSMB file shares, lift-and-shiftaz storage file
Queue StorageAsync messaging, task queuesaz storage queue
Table StorageNoSQL key-value (consider Cosmos DB)az storage table
Data LakeBig data analytics, hierarchical namespaceaz storage fs

CLI commands

# List storage accounts
az storage account list --output table

# List containers
az storage container list --account-name ACCOUNT --auth-mode login --output table

# List blobs
az storage blob list --account-name ACCOUNT --container-name CONTAINER --auth-mode login --output table

# Download blob
az storage blob download --account-name ACCOUNT --container-name CONTAINER --name BLOB --file LOCAL_PATH --auth-mode login

# Upload blob
az storage blob upload --account-name ACCOUNT --container-name CONTAINER --name BLOB --file LOCAL_PATH --auth-mode login

These data-plane commands use the signed-in Entra identity. It needs scoped Storage Blob Data Reader for reads or Storage Blob Data Contributor for writes; management-plane Reader alone is insufficient.

For deeper service docs and patterns, call mcp_azure-mcp_documentation with command: "microsoft_docs_search" and the relevant Azure Storage topic, or follow the links in Service Details.

Storage Account Tiers

TierUse CasePerformance
StandardGeneral purpose, backupMilliseconds
PremiumDatabases, high IOPSSub-millisecond

Blob Access Tiers

TierAccess FrequencyCost
HotFrequentHigher storage, lower access
CoolInfrequent (30+ days)Lower storage, higher access
ColdRare (90+ days)Lower still
ArchiveRarely (180+ days)Lowest storage, rehydration required

Redundancy Options

TypeDurabilityUse Case
LRS11 ninesDev/test, recreatable data
ZRS12 ninesRegional high availability
GRS16 ninesDisaster recovery
GZRS16 ninesBest durability

Rules

  • Use Managed Identity over shared keys — connect via DefaultAzureCredential (or equivalent SDK helper) instead of account keys or SAS where possible
  • Disable public blob access by default; use private endpoints + Entra-only access for prod data
  • Match the access tier to the access pattern — Hot for active, Cool for 30+ days, Cold for 90+ days, Archive for 180+ days (rehydration required to read)
  • Pick redundancy by RPO/RTO — LRS for dev, ZRS for regional HA, GRS/GZRS for DR
  • Apply lifecycle management to auto-tier blobs based on age and last access
  • Premium tier is for sub-millisecond latency / high-IOPS workloads; default is Standard
  • Security baseline is non-negotiable — see iac-security-baseline.md (TLS 1.2 minimum, HTTPS-only, public blob disabled, Managed Identity)
  • Out of scope: SQL / Cosmos DB (use apex-azure-prepare), messaging via Event Hubs / Service Bus

Steps

  1. Identify the storage service for the workload — see Services (Blob / File / Queue / Table / Data Lake)
  2. Choose redundancy — LRS / ZRS / GRS / GZRS based on RPO/RTO requirements
  3. Choose access tier — Hot / Cool / Cold / Archive based on expected access frequency
  4. Apply security baseline — see iac-security-baseline.md (HTTPS-only, TLS 1.2, public blob disabled, Managed Identity)
  5. Run routine operations via az storage CLI — see CLI commands
  6. Wire lifecycle management for long-lived data to auto-tier and reduce cost

Service Details

For deep documentation on specific services:

SDK Quick References

For building applications with Azure Storage SDKs, see the condensed guides:

  • Blob Storage: Python | TypeScript | Java | Rust
  • Queue Storage: Python | TypeScript
  • File Shares: Python | TypeScript
  • Data Lake: Python
  • Tables: Python | Java

For full package listing across all languages, see SDK Usage Guide.

Reference Index

Load these on demand — do NOT read all at once:

ReferenceWhen to Load
../apex-entra-app-registration/references/auth-best-practices.mdAuth Best Practices
references/sdk-usage.mdSdk Usage

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.