Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Loading...
Area: Optimizely CMS
Applies to versions: 12 and higher

How to add Azure BLOB Provider to your .NET Core application

Recommended reading 
Note: This documentation is for the preview version of the upcoming release of CMS 12/Commerce 14/Search & Navigation 14. Features included here might not be complete, and might be changed before becoming available in the public release. This documentation is provided for evaluation purposes only.

This topic explains the concept and usage of BLOBs (Binary Large Objects) for Azure BLOB. Install EPiserver.Azure package that have the extensions methods on IServiceCollection interface.

The following example shows how to use and add Azure BLOB provider in application:

using EPiServer.ServiceLocation;
using Microsoft.Extensions.DependencyInjection;
using System;

namespace SampleBlob
{
  public class Startup
  {
    public void ConfigureServices(IServiceCollection services)
    {
      .AddAzureBlobProvider("Azure", o =>
      {
        o.ConnectionString = {The Azuer storage connection string};
        o.ContainerName = {The container name};
      });
    }
  }
}
Do you find this information helpful? Please log in to provide feedback.

Last updated: Jul 02, 2021

Recommended reading