Introduction
In modern cloud-based applications, storing files securely and scalably is essential. Whether it's profile images, invoices, PDFs, or logs — cloud storage is the go-to solution.
In this article, we will learn how to:
What is Azure Blob Storage?
Create Azure Blob Storage
Configure it in a .NET 8 Web API
Test using Swagger
We will use:
.NET 8 Web API
Azure Blob Storage
Azure Portal
What is Azure Blob Storage?
Microsoft provides a service called Azure Blob Storage—a massively scalable object storage solution for storing unstructured data in the cloud.
Unstructured data means data that does not fit into traditional relational databases, such as
Images
PDFs
Videos
Logs
Backups
Understanding Object Storage
Storage Account
Top-level resource in Azure.
Acts like a global namespace for your data.
Container
Similar to a folder (logical grouping of blobs).
Blob
Actual file stored in Azure.
Example:
https://mystorage.blob.core.windows.net/invoices/invoice1.pdf
Types of Azure Blob Storage
Block Blob (Most Common)
Block blobs store data as blocks, which are uploaded independently and then committed together.
Each block:
Can be uploaded separately
Can be re-uploaded if failed
Supports parallel upload
Best For: Images, Videos, Documents
Append Blob
Append blobs are optimized for append operations only.
You can add data to the end.
Not modify existing data.
Not delete specific blocks.
Best For: Logging systems, Audit trails
Page Blob
Page blobs store data in 512-byte pages.
Can be read/written randomly
Supports random access
Ideal for frequent read/write operations
Best For: Virtual machine disks (VHD files), Databases
Create Azure Blob Storage
Go to Azure Portal → Create Resource → Storage Account
Important Settings
Performance → Standard
Redundancy → LRS (Low-cost option)
Region → Choose nearest



After creation:





Join the conversation! Your thoughts help the community grow.