Install Azure BLOB provider for Optimizely CMS 13
1 min
The Azure BLOB provider offloads media and file storage from the local file system to Azure Blob Storage, enabling scalable cloud-based content delivery.
Install the EPiServer.Azure package, which provides extension methods on the IServiceCollection interface.
The following example shows how to add the Azure BLOB provider to your application:
using EPiServer.ServiceLocation;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace SampleBlob {
public class Startup {
public void ConfigureServices(IServiceCollection services) {
services.AddAzureBlobProvider(o => {
o.ConnectionString = "<The Azure storage connection string>";
o.ContainerName = "<The container name>";
});
}
}
}