返回技能市场
开发运维 安全

azure-storage

@admin/azure-storage

Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data analytics. Includes lifecycle management. USE FOR: blob storage, file shares, queue storage, table storage, data lake, upload files, download blobs, storage accounts, access tiers, storage tiers, hot cool cold archive, storage tier comparison, when to use storage tiers, lifecycle management, Azure Storage concepts. DO NOT USE FOR: SQL databases, Cosmos DB (use azure-prepare), messaging with Event Hubs or Service Bus (use azure-messaging).

admin 热度 265v0.0.1

Azure 存储服务

服务

| 服务 | 何时使用 | MCP 工具 | CLI | |---------|----------|-----------|-----| | Blob Storage | 对象、文件、备份、静态内容 | azure__storage | az storage blob | | File Shares | SMB 文件共享、平移迁移 | - | az storage file | | Queue Storage | 异步消息、任务队列 | - | az storage queue | | Table Storage | NoSQL 键值(考虑 Cosmos DB) | - | az storage table | | Data Lake | 大数据分析、层次命名空间 | - | az storage fs |

MCP Server(首选)

启用 Azure MCP 时:

  • azure__storage 带命令 storage_account_list - 列出存储账户
  • azure__storage 带命令 storage_container_list - 列出账户中的容器
  • azure__storage 带命令 storage_blob_list - 列出容器中的 blob
  • azure__storage 带命令 storage_blob_get - 下载 blob 内容
  • azure__storage 带命令 storage_blob_put - 上传 blob 内容

如果未启用 Azure MCP: 运行 /azure:setup 或通过 /mcp 启用。

CLI 回退

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

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

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

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

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

存储账户层级

| 层级 | 使用场景 | 性能 | |------|----------|-------------| | 标准 | 通用、备份 | 毫秒级 | | 高级 | 数据库、高 IOPS | 亚毫秒级 |

Blob 访问层

| 层级 | 访问频率 | 成本 | |------|-----------------|------| | 热层 | 频繁 | 存储成本较高,访问成本较低 | | 凉层 | 不频繁(30+ 天) | 存储成本较低,访问成本较高 | | 冷层 | 很少(90+ 天) | 存储成本更低 | | 归档层 | 很少(180+ 天) | 存储成本最低,需要重新水合 |

冗余选项

| 类型 | 持久性 | 使用场景 | |------|------------|----------| | LRS | 11 个九 | 开发/测试、可重新创建的数据 | | ZRS | 12 个九 | 区域高可用性 | | GRS | 16 个九 | 灾难恢复 | | GZRS | 16 个九 | 最佳持久性 |

服务详情

有关特定服务的深入文档:

SDK 快速参考

要使用 Azure Storage SDK 构建应用程序,请参阅精简指南:

  • Blob Storage: [Python](references/sdk/azure-storage-blob-py.md) | [TypeScript](references/sdk/azure-storage-blob-ts.md) | [Java](references/sdk/azure-storage-blob-java.md) | [Rust](references/sdk/azure-storage-blob-rust.md)
  • Queue Storage: [Python](references/sdk/azure-storage-queue-py.md) | [TypeScript](references/sdk/azure-storage-queue-ts.md)
  • File Shares: [Python](references/sdk/azure-storage-file-share-py.md) | [TypeScript](references/sdk/azure-storage-file-share-ts.md)
  • Data Lake: [Python](references/sdk/azure-storage-file-datalake-py.md)
  • Tables: [Python](references/sdk/azure-data-tables-py.md) | [Java](references/sdk/azure-data-tables-java.md)

要查看所有语言的完整包列表,请参阅 [SDK 使用指南](references/sdk-usage.md).

Azure SDK 包

要构建以编程方式与 Azure Storage 交互的应用程序,Azure 提供多种语言(.NET、Java、JavaScript、Python、Go、Rust)的 SDK 包。请参阅 [SDK 使用指南](references/sdk-usage.md) 了解包名称、安装命令和快速入门示例。

qianwen skills install @admin/azure-storage