File Storage with Azure Blob Storage in .NET API


Ibrahim Jaber
5 min readApr 23


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.


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 (
  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, location, and performance settings, according to your needs. Click on the “Create” button to create the Blob Storage account.
  5. Once the Blob Storage account is created, navigate to the “Access keys” section under the “Settings” tab and note down the “Connection string” for later use. This connection string will be used to connect to the Blob Storage account from our .NET 6.0 Core API.

Create a .NET Core API Project Next, let’s create a new .NET Core API project in Visual Studio 2022. Follow these steps:

  1. Open Visual Studio 2022 or later.
  2. Click on “Create a new project” button.
  3. In the “Create a new project” dialog, search for “ASP.NET Core Web API” template in the search bar.
  4. Select “ASP.NET Core Web API” from the list of templates and click on the “Next”…



Ibrahim Jaber

Software developer | Programming and Blockchain enthusiast