技能 azure-storage
📦

azure-storage

安全

使用 Azure 儲存體服務

此官方 Microsoft 技能提供 Azure 儲存體服務的完整指南,包括 Blob、Files、Queue、Tables 和 Data Lake。它提供 MCP 工具整合和 CLI 命令,協助開發者有效管理雲端儲存資源。

支援: Claude Codex Code(CC)
⚠️ 65
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「azure-storage」。 列出我儲存體帳戶中的容器

預期結果:

此技能提供 MCP 工具(azure__storage)或 CLI 回退命令,如:az storage container list --account-name ACCOUNT --output table

正在使用「azure-storage」。 使用 Python SDK 上傳 Blob

預期結果:

使用 azure-storage-blob SDK 的程式碼範例,包含 ContainerClient 和 BlobClient 以將內容上傳至 Azure Blob 儲存體

正在使用「azure-storage」。 備援選項有哪些?

預期結果:

LRS(11 個 9,本地)、ZRS(12 個 9,區域)、GRS(16 個 9,異地備援)、GZRS(16 個 9 搭配區域容錯移轉)

安全審計

安全
v1 • 2/20/2026

All 146 static findings are FALSE POSITIVES. This is an official Microsoft skill containing only markdown documentation files with SDK usage examples. The scanner detected patterns in documentation that appear similar to security issues but are actually standard markdown code formatting (backticks), legitimate Azure documentation URLs, and Go import statements. No executable code, scripts, or malicious patterns exist.

13
已掃描檔案
527
分析行數
4
發現項
1
審計總數

高風險問題 (4)

False Positive: Ruby/Shell Backtick Execution
The scanner detected 'Ruby/shell backtick execution' in 119 locations. These are markdown documentation files using backticks (`) for code block formatting, not actual shell execution. Examples: `az storage blob list`, `dotnet add package`. This is standard markdown syntax.
False Positive: Hardcoded URLs
The scanner detected 'Hardcoded URLs' in 18 locations. These are legitimate Azure documentation URLs (learn.microsoft.com) and placeholder storage endpoint examples (https://ACCOUNT.blob.core.windows.net/) used for instructional purposes. Not security vulnerabilities.
False Positive: Dynamic Import Expression
The scanner detected 'Dynamic import() expression' at references/sdk-usage.md:83. This is Go code's 'import (' statement in a code example, not JavaScript dynamic import. Documentation content only.
False Positive: Weak Cryptographic Algorithm
The scanner flagged 'Weak cryptographic algorithm' in 8 locations. This appears to be a scanner misidentification - no cryptographic algorithms exist in these documentation files. The skill contains only Azure Storage SDK reference documentation.
審計者: claude

品質評分

50
架構
100
可維護性
85
內容
23
社群
65
安全
83
規範符合性

你能建構什麼

雲端儲存體管理

列出 Azure 訂用帳戶中的儲存體帳戶、容器和 Blob。使用 MCP 工具或 CLI 命令上傳和下載 Blob 內容。

應用程式資料儲存

將 Azure 儲存體 SDK 整合到應用程式中。對非結構化資料使用 Blob 儲存體,對非同步處理使用 Queue 儲存體,對 NoSQL 資料使用 Table 儲存體。

資料遷移和備份

設定檔案共用以進行直接遷移案例。設定備援選項(LRS、ZRS、GRS、GZRS)以滿足災害復原和持久性需求。

試試這些提示

列出儲存體帳戶
使用 azure-storage 技能列出我 Azure 訂用帳戶中的所有儲存體帳戶。
將 Blob 上傳至容器
如何使用 Python 將檔案上傳至 Azure Blob 儲存體?顯示 SDK 程式碼。
建立檔案共用
建立具有 SMB 存取的新 Azure 檔案共用。CLI 命令是什麼?
設定 Blob 生命週期
設定 Blob 存取層級(熱、冷、封存)和生命週期管理原則。

最佳實務

  • 使用受控識別而非儲存體金鑰進行驗證
  • 啟用 Blob 容器的虛刪除以防止資料遺失
  • 使用適當的存取層級(熱/冷/封存)來最佳化成本

避免

  • 不要在原始程式碼中硬編碼儲存體帳戶金鑰
  • 避免對敏感性資料使用公用存取 Blob
  • 不要對生產資料跳過備援選項

常見問題

支援哪些 Azure 儲存體服務?
Blob 儲存體、檔案共用、Queue 儲存體、Table 儲存體和 Data Lake 都支援 MCP 工具和 CLI 命令。
是否需要啟用 Azure MCP 伺服器?
建議使用 MCP 進行工具整合。執行 /azure:setup 或透過 /mcp 啟用。未設定 MCP 時可使用 CLI 回退。
支援哪些程式語言?
SDK 支援 .NET、Java、JavaScript/TypeScript、Python、Go 和 Rust,技能中包含程式碼範例。
如何選擇儲存體層級?
熱儲存層適用於頻繁存取,冷儲存層適用於 30 天以上,冰凍儲存層適用於 90 天以上,封存儲存層適用於 180 天以上的不頻繁資料。
應該使用哪個備援選項?
LRS 適用於開發/測試,ZRS 適用於區域高可用性,GRS 適用於災害復原,GZRS 適用於最大持久性。
此技能是官方 Microsoft 嗎?
是,這是來自 GitHub Copilot for Azure 儲存庫的官方 Microsoft 技能。