File Storage with Azure Blob Storage in .NET API

Introduction

Ibrahim Jaber
5 min readApr 23, 2023

Azure Blob Storage is a powerful cloud-based storage solution provided by Microsoft Azure that allows storing and managing large amounts of unstructured data, including videos. In this blog post, we will learn how to implement Azure Blob Storage in a .NET Core API for storing and managing videos. We will cover the basic steps of creating an Azure Blob Storage account, configuring the connection to Blob Storage in our .NET Core API, and implementing file upload, download, and deletion functionalities using the latest features of .NET.

Prerequisites:

Before we begin, make sure you have the following prerequisites in place:

  • Visual Studio 2022 or later with .NET 6.0 SDK installed
  • Azure Blob Storage account created in your Azure subscription

Create an Azure Blob Storage Account The first step is to create an Azure Blob Storage account in your Azure subscription. Follow these steps:

  1. Log in to the Azure portal (https://portal.azure.com/).
  2. Click on “Create a resource” button and search for “Blob Storage” in the search bar.
  3. Select “Blob storage” from the list of results and click on the “Create” button.
  4. Fill in the required information, such as subscription, resource group, storage account name…

--

--

Ibrahim Jaber

Software developer | Programming and Blockchain enthusiast