SKILL

azure-storage-blob-ts

用于 Blob 操作的 Azure Blob Storage JavaScript/TypeScript SDK(@azure/storage-blob)。用于上传、下载、列出和管理 Blob 与容器。支持块 Blob、追加 Blob、页 Blob、SAS 令牌和流式传输。触发词:"blob storage"、"@azure/storage-blob"、"BlobServiceClient"、"ContainerClient"、"upload blob"、"download blob"、"SAS token"、"block blob"。

机器翻译
查看英文原文

Azure Blob Storage JavaScript/TypeScript SDK (@azure/storage-blob) for blob operations. Use for uploading, downloading, listing, and managing blobs and containers. Supports block blobs, append blobs, page blobs, SAS tokens, and streaming. Triggers: "blob storage", "@azure/storage-blob", "BlobServiceClient", "ContainerClient", "upload blob", "download blob", "SAS token", "block blob".

适用对象:云服务、运维与安全。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • @azure/storage-blob (TypeScript/JavaScript)
  • Installation
  • Environment Variables
  • Authentication
  • Microsoft Entra Token Credential (Recommended)
  • Connection String
  • StorageSharedKeyCredential (Node.js only)
  • SAS Token

SDK for Azure Blob Storage operations — upload, download, list, and manage blobs and containers. Current Version: 12.x Node.js: >= 18.0.0 Most common type for text and binary files. Optimized for append operations (logs, audit trails). Fixed-size blobs for random read/write (VHDs). 1. Use DefaultAzureCredential for local development; use ManagedIdentityCredential or WorkloadIdentityCredential for production 2. Use streaming for large files — uploadStream/downloadToFile for files > 256MB 3. Set appropriate content types — Use setHTTPHeaders for correct MIME types 4. Use SAS tokens for client access — Generate short-lived tokens for browser uploads 5. Handle errors gracefully — Check RestError.statusCode for specific handling 6. Use IfNotExists methods — For idempotent container/blob creation 7. Close clients — Not required but good practice in long-running apps | Feature | Node.js | Browser | |---------|---------|---------| | StorageSharedKeyCredential | ✅ | ❌ | | uploadFile() | ✅ | ❌ | | uploadStream() | ✅ | ❌ | | downloadToFile() | ✅ | ❌ | | downloadToBuffer() | ✅ | ❌ | | uploadData() | ✅ | ✅ | | SAS generation | ✅ | ❌ | | DefaultAzureCredential | ✅ | ❌ | | Anonymous/SAS access |

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
microsoft/skills
源文件
.github/plugins/azure-sdk-typescript/skills/azure-storage-blob-ts/SKILL.md
固定版本
9287b443662d2433c85621c7325ee72a0ce499b5
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:Microsoft Skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T19:02:06.602Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。