Index of every page on this site: llms.txt
All skills
microsoft avatar

/azure-storage

@147c081 official
Run it yourself

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).

Use this Skill: https://skilld.dev/gh/microsoft/github-copilot-for-azure/azure-storage

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessdk-usage.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Azure Storage SDK Usage

SDK packages and quick start examples for Azure Storage services.

Storage SDKs by Language

Language Blob Queue File Share Data Lake
.NET Azure.Storage.Blobs Azure.Storage.Queues Azure.Storage.Files.Shares Azure.Storage.Files.DataLake
Java azure-storage-blob azure-storage-queue azure-storage-file-share azure-storage-file-datalake
JavaScript @azure/storage-blob @azure/storage-queue @azure/storage-file-share @azure/storage-file-datalake
Python azure-storage-blob azure-storage-queue azure-storage-file-share azure-storage-file-datalake
Go azblob azqueue azfile azdatalake
Rust azure_storage_blob azure_storage_queue - -

Installation Commands

Language Install Blob SDK + Identity
.NET dotnet add package Azure.Storage.Blobs dotnet add package Azure.Identity
Java Maven: com.azure:azure-storage-blob com.azure:azure-identity
JavaScript npm install @azure/storage-blob @azure/identity
Python pip install azure-storage-blob azure-identity
Go go get github.com/Azure/azure-sdk-for-go/sdk/storage/azblob github.com/Azure/azure-sdk-for-go/sdk/azidentity
Rust cargo add azure_storage_blob azure_identity

Quick Start Examples

All examples use DefaultAzureCredential for authentication, which is recommended for local development only. In production, use ManagedIdentityCredential — see auth-best-practices.md. Rust uses DeveloperToolsCredential as it doesn't have a DefaultAzureCredential equivalent.

Python - Upload Blob:

from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient

service = BlobServiceClient(account_url="https://ACCOUNT.blob.core.windows.net/", credential=DefaultAzureCredential())
container = service.get_container_client("my-container")
blob = container.get_blob_client("my-blob.txt")
blob.upload_blob(b"Hello, Azure Storage!", overwrite=True)

JavaScript - Upload Blob:

import { DefaultAzureCredential } from "@azure/identity";
import { BlobServiceClient } from "@azure/storage-blob";

const client = new BlobServiceClient("https://ACCOUNT.blob.core.windows.net/", new DefaultAzureCredential());
const container = client.getContainerClient("my-container");
const blob = container.getBlockBlobClient("my-blob.txt");
await blob.uploadData(Buffer.from("Hello, Azure Storage!"));

C# - Upload Blob:

using Azure.Identity;
using Azure.Storage.Blobs;

var client = new BlobServiceClient(new Uri("https://ACCOUNT.blob.core.windows.net/"), new DefaultAzureCredential());
var container = client.GetBlobContainerClient("my-container");
var blob = container.GetBlobClient("my-blob.txt");
await blob.UploadAsync(BinaryData.FromString("Hello, Azure Storage!"), overwrite: true);

Java - Upload Blob:

import com.azure.identity.*;
import com.azure.storage.blob.*;
import com.azure.core.util.BinaryData;

BlobServiceClient client = new BlobServiceClientBuilder()
    .endpoint("https://ACCOUNT.blob.core.windows.net/")
    .credential(new DefaultAzureCredentialBuilder().build())
    .buildClient();
BlobContainerClient container = client.getBlobContainerClient("my-container");
BlobClient blob = container.getBlobClient("my-blob.txt");
blob.upload(BinaryData.fromString("Hello, Azure Storage!"), true);

Go - Upload Blob:

package main

import (
    "context"

    "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
    "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
)

func main() {
    cred, _ := azidentity.NewDefaultAzureCredential(nil)
    client, _ := azblob.NewClient("https://ACCOUNT.blob.core.windows.net/", cred, nil)

    data := []byte("Hello, Azure Storage!")
    _, _ = client.UploadBuffer(context.Background(), "my-container", "my-blob.txt", data, nil)
}

Rust - Upload Blob:

use azure_identity::DeveloperToolsCredential;
use azure_storage_blob::{BlobClient, BlobClientOptions};

let credential = DeveloperToolsCredential::new(None)?;
let blob_client = BlobClient::new(
    "https://ACCOUNT.blob.core.windows.net/",
    "my-container",
    "my-blob.txt",
    Some(credential),
    Some(BlobClientOptions::default()),
)?;
let data = b"Hello, Azure Storage!";
blob_client.upload(None, data.to_vec().into()).await?;

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo4 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides a comprehensive set of documentation and code examples for interacting with Azure Storage services. It follows security best practices by emphasizing the use of managed identities for production environments and providing clear guidance on authentication strategies. The skill is informative and does not contain any detected security findings.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

  • Runlayer8mo

    3/14 files flagged

Signed by skilld at 147c081. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "0.0.0-placeholder"
}
  • azure
  • blob-storage
  • file-shares
  • queue-storage
  • table-storage
  • data-lake
  • access-tiers
  • lifecycle-management
  • storage-accounts

README badge

README badge for microsoft/github-copilot-for-azure/azure-storage

Guides blob storage, file shares, queue storage, table storage, and data lake on Azure. Answers questions about storage access tiers (hot, cool, cold, archive), tier selection, lifecycle management, and redundancy options. Provides MCP tools for listing and managing storage accounts, containers, and blobs, with Azure CLI fallback.

Generated from the current SKILL.md.

What's the difference between Hot, Cool, Cold, and Archive access tiers?
Hot tier is for frequent access with higher storage costs but lower access costs. Cool (30+ days), Cold (90+ days), and Archive (180+ days) have progressively lower storage costs but higher access costs. Archive requires rehydration before data can be read.
Does this skill cover Cosmos DB?
No. Table Storage is covered here for NoSQL key-value workloads, but Cosmos DB should use the azure-prepare skill instead.
Can I use this skill for Event Hubs or Service Bus?
No. This skill covers Queue Storage for async messaging and task queues. Event Hubs and Service Bus messaging should use the azure-messaging skill.
What redundancy option should I use for disaster recovery?
GRS (Geo-Redundant Storage) and GZRS (Geo-Zone-Redundant Storage) both offer 16 nines durability for disaster recovery. GZRS provides the best durability by combining geographic and zone redundancy.
Does this skill include SDK examples?
Yes. The skill references condensed SDK guides for Blob Storage, Queue Storage, File Shares, Data Lake, and Tables across Python, TypeScript, Java, Rust, and Go.

Generated from the current SKILL.md. These answers refresh after source changes.