Skip to main content

Azure Storage

Azure Storage provides scalable, durable cloud storage for unstructured data. You can store blobs, files, queues, and tables.

Key Capabilities

  • Store large objects (blobs), files, and structured NoSQL data
  • Queue messages for asynchronous processing
  • Access data securely with shared access signatures
  • Integrate with other Azure services

When to Use

Use Azure Storage when you need to:

  • Store files, images, or backups
  • Queue messages between distributed components
  • Persist application state or logs

Example: Upload a Blob

var blobServiceClient = new BlobServiceClient(connectionString);
var containerClient = blobServiceClient.GetBlobContainerClient("my-container");
var blobClient = containerClient.GetBlobClient("sample.txt");
using var uploadFileStream = File.OpenRead("sample.txt");
blobClient.Upload(uploadFileStream, true);

Resources