Azure Blob Storage

Azure Blob Storage is scalable object storage for unstructured data. Redakt CMS can store its media files in Azure Blob Storage. Redakt CMS offers Azure Blog Storage integration through an optional NuGet package.

In addition to CosmosDB, the Redakt Azure package also includes a CosmosDB data store module and an Azure Service Bus module.

Installation

Install the Azure package with the NuGet package manager or the Package Manager Console.

PM> Install-Package Redakt.Data.Azure

Register Azure Blob Storage services in the ConfigureServices method in your project's Startup.cs file.

public void ConfigureServices(IServiceCollection services)
{
    // ... framework and other services here

    services.AddRedakt(this.Configuration, builder =>
    {
        builder.AddAzureBlobStorage();
        // ... other Redakt services
    });
}

Configuration

The Azure Blob Storage file store is configured through the appsettings.json file. Any configuration that is not included in the appsettings.json file will be set to its following default values.

{
    "Redakt": {
        "FileStore": {
            "AzureStorage": {
                "ConnectionString": "",
                "ContainerName": "media"
            }
        }
    }
}

Connection String

Required. These settings are found in the Azure Portal, and are used to connect to your CosmosDB instance.

Azure Portal CosmosDB keys

Container Name

Sets the name of the Blob Storage container where file will be stored. Defaults to "media" if not set.