Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

AzCopy

$ azcopy Official Med Risk
Microsoft · Cloud & Infra · MIT · macos / linux / windows

AzCopy v10 (azcopy) is Microsoft's high-performance Go utility for copying, syncing, and benchmarking Azure Blob, Files, and Data Lake Storage. It supports --output-type json, --dry-run, SAS tokens, and Entra ID (azcopy login / managed identity) authentication.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install azcopy
CLI vs MCP Decision CLI Only

Bulk parallel multi-gigabyte object transfers and local-to-Blob sync belong exclusively in azcopy, never serialized through an LLM MCP channel.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Global --output-type json, non-interactive AZCOPY_AUTO_LOGIN_TYPE service principal/managed identity support, and --dry-run=true on copy, sync, and remove.

  • Supports --output-type json and --dry-run=true
  • Supports AZCOPY_SPA_CLIENT_SECRET / AZCOPY_MSI_CLIENT_ID headless auth
Trust & Safety 20 / 25

--dry-run=true and --overwrite=false protect against accidental overwrites, though --delete-destination=true and azcopy remove are destructive.

  • Explicit --dry-run=true and --overwrite safeguards
Setup & Portability 14 / 15

Single static Go binary available via Homebrew and direct Microsoft archives across macOS, Linux, and Windows.

  • Zero-dependency static Go executable
Utility & Efficiency 13 / 15

Far faster and more resilient than az storage blob for large parallel transfers and directory syncs.

  • Resumable job plans (azcopy jobs resume) and high-concurrency transfers
Maintenance & Lineage 8 / 10

Official Microsoft Azure Storage tool (Azure/azure-storage-azcopy) under MIT license.

  • Official Microsoft repository under MIT license
Docs & Verifiability 8 / 10

Detailed Microsoft Learn command reference with clear flag tables.

  • Full azcopy reference documentation on Microsoft Learn

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Service Account
Credential Storage

Stores Entra ID token cache under ~/.azcopy/, or reads AZCOPY_SPA_CLIENT_SECRET / AZCOPY_AUTO_LOGIN_TYPE and inline SAS tokens.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

MIT open-source CLI; Azure Storage API transactions and egress bandwidth incur standard Azure billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# AzCopy Agent Rules
- Always pass `--output-type json` for parseable status and summary events.
- Run `azcopy sync ... --dry-run=true` before any sync, especially if `--delete-destination=true` is considered.
- Prefer `--overwrite=false` unless overwrite is explicitly requested.

Agent-Ready Command Recipes

Safe Read-Only Queries

List blobs in a container as JSON
azcopy list "https://<account>.blob.core.windows.net/<container>" --output-type json

Enumerates remote objects in structured JSON lines without transferring data.

Preview a sync operation with --dry-run
azcopy sync ./dist "https://<account>.blob.core.windows.net/<container>" --dry-run=true --output-type json

Reports files that would be copied or deleted without modifying local or Azure storage.

Controlled Writes & Previews

Copy local artifacts without overwriting existing blobs
azcopy copy ./build "https://<account>.blob.core.windows.net/<container>" --recursive --overwrite=false --output-type json

Uploads build artifacts with --overwrite=false to prevent accidental data loss.

Strengths for Agents

  • + --output-type json + --dry-run=true let agents preview transfers cleanly.
  • + Single Go binary with high-throughput parallel transfers and resumable job logs.
  • + Supports Entra ID, Managed Identity, and time-scoped SAS tokens.

Caveats & Pitfalls

  • ! --output-type json emits newline-delimited JSON status events rather than a single JSON object.
  • ! Passing SAS tokens on the command line can expose secrets in shell history or process listings.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI