An ASP.NET Core MVC application that demonstrates how to use Azure Storage services:
- Blob Storage β Store and retrieve images/files.
- Queue Storage β Send and receive messages (e.g., audit logs).
- File Share Storage β Upload, download, and manage files in Azure File Shares.
- Table Storage β Store structured NoSQL-style data such as customer profiles.
- .NET 8 SDK
- An Azure Storage Account
- Connection string from your Storage Account
Update appsettings.json
with your storage account connection string:
{
"ConnectionStrings": {
"AzureStorage": "DefaultEndpointsProtocol=https;AccountName=...;AccountKey=...;EndpointSuffix=core.windows.net"
}
}
dotnet build
dotnet run
Navigate to https://localhost:5001
(or as shown in console).
- Upload files (e.g., images, documents)
- List all uploaded blobs
- Download or delete files
Buisness Logic could be applied to store the blob item URL in a table, like if each Product had one picture or video
- Upload/download files to Azure File Shares
- Manage shared files via UI
Each item can only be downloaded as the File Share is only supposed to act as a kind of cloud based external drive to store documents.
- Send structured messages (e.g., audit logs)
- Peek and dequeue messages
- Useful for async event processing
Buisness Logic implemented later could have orders to be serialised to JSON to add to the queue then some logic could happen like an order being marked for delivery where the order queue can deserialise the data into a model update say the status and requeue. Other buisness logic could also be implemeted that when an order is placed and stock runs below a threshold a message can be added to the inventory queue to wait on employee or automation to arrage for more stock for that item to be ordered and so on.
- Store customer profiles and structured entities
- CRUD operations via UI
- Uses
ITableEntity
for schema-flexible storage
Later Some table rows could contain association to multimedia that is stored in the blob