Roadmap › Microsoft Azure for .NET Developers › Module: Data and Storage
Lessons in this course (14)
6. Azure Storage account
Basic★ Must knowLesson 6 of 14
| Service | Stores | Use |
|---|---|---|
| Blob Storage | Objects (files) — block, append, page blobs | Images, documents, backups, data lake (ADLS Gen2 with hierarchical namespace) |
| Queue Storage | Simple messages (64 KB) | Basic background work |
| Table Storage | NoSQL key-attribute | Cheap structured data |
| Azure Files | SMB/NFS file shares | Lift-and-shift shared folders |
- Access tiers for blobs: Hot, Cool (30-day min), Cold (90-day min), Archive (180-day min, offline — rehydrate hours); lifecycle management policies move/delete automatically.
- Redundancy: LRS (3 copies in one datacenter), ZRS (across zones), GRS/RA-GRS (plus secondary region), GZRS/RA-GZRS.
- Secure access: Entra ID RBAC + managed identity (preferred), SAS tokens (time-limited, scoped; user delegation SAS best), account keys (avoid), private endpoints, firewall.
csharp
var container = new BlobContainerClient(new Uri("https://stshop.blob.core.windows.net/invoices"), new DefaultAzureCredential());
await container.CreateIfNotExistsAsync();
await container.GetBlobClient($"{invoiceId}.pdf").UploadAsync(pdfStream, overwrite: true);