azure-storage
GitHub Copilot for Azure
npx skills add microsoft/github-copilot-for-azure --skill azure-storageBefore / After 效果对比
1 组1对Azure存储服务缺乏深入了解,可能不加区分地使用单一存储类型(如Blob Storage)来满足所有需求,导致存储成本高、性能不佳或功能受限。
2```bash
3# 假设所有文件都存放在Blob Storage,即使需要SMB共享
4az storage blob upload --container-name myfiles --file localfile.txt
5# 无法直接作为网络共享驱动器使用
6```1根据Azure Storage Services的指导,可以根据具体场景(对象、文件共享、消息队列、NoSQL键值对、大数据分析)选择最合适的存储服务,从而优化成本、性能和功能。
2```bash
3# 根据需求选择:
4# 静态网站内容、大文件备份 -> Blob Storage
5# SMB文件共享 -> File Shares
6# 异步消息队列 -> Queue Storage
7# NoSQL键值对 -> Table Storage (或 Cosmos DB)
8# 大数据分析 -> Data Lake Storage
9
10# 示例:上传文件到Azure File Shares
11az storage file upload --share-name myshare --source localfile.txt --path "documents/report.pdf"
12```description SKILL.md
azure-storage
Azure Storage Services Services Service Use When MCP Tools CLI Blob Storage Objects, files, backups, static content azure__storage az storage blob File Shares SMB file shares, lift-and-shift - az storage file Queue Storage Async messaging, task queues - az storage queue Table Storage NoSQL key-value (consider Cosmos DB) - az storage table Data Lake Big data analytics, hierarchical namespace - az storage fs MCP Server (Preferred) When Azure MCP is enabled: azure__storage with command storage_account_list - List storage accounts azure__storage with command storage_container_list - List containers in account azure__storage with command storage_blob_list - List blobs in container azure__storage with command storage_blob_get - Download blob content azure__storage with command storage_blob_put - Upload blob content If Azure MCP is not enabled: Run /azure:setup or enable via /mcp. CLI Fallback # 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 Storage Account Tiers Tier Use Case Performance Standard General purpose, backup Milliseconds Premium Databases, high IOPS Sub-millisecond Blob Access Tiers Tier Access Frequency Cost Hot Frequent Higher storage, lower access Cool Infrequent (30+ days) Lower storage, higher access Cold Rare (90+ days) Lower still Archive Rarely (180+ days) Lowest storage, rehydration required Redundancy Options Type Durability Use Case LRS 11 nines Dev/test, recreatable data ZRS 12 nines Regional high availability GRS 16 nines Disaster recovery GZRS 16 nines Best durability Service Details For deep documentation on specific services: Blob storage patterns and lifecycle -> Blob Storage documentation File shares and Azure File Sync -> Azure Files documentation Queue patterns and poison handling -> Queue Storage documentation 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. Azure SDKs For building applications that interact with Azure Storage programmatically, Azure provides SDK packages in multiple languages (.NET, Java, JavaScript, Python, Go, Rust). See SDK Usage Guide for package names, installation commands, and quick start examples.Weekly Installs103.1KRepositorymicrosoft/githu…or-azureGitHub Stars156First SeenFeb 4, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled ongithub-copilot103.0Kcodex527gemini-cli516opencode491kimi-cli477cursor477
forum用户评价 (0)
发表评价
暂无评价,来写第一条吧
统计数据
用户评分
为此 Skill 评分