Azure Storage

This is an enterprise feature.
<dependency>
	<groupId>one.microstream</groupId>
	<artifactId>microstream-enterprise-afs-azure-storage</artifactId>
	<version>06.00.00-MS-GA</version>
</dependency>
BlobServiceClient client = ...;
BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
	AzureStorageConnector.Caching(client)
);
EmbeddedStorage.start(fileSystem.ensureDirectoryPath("microstream_storage"));

Configuration

When using external configuration Azure Storage can be set as follows.

microstream-storage.properties
storage-filesystem.azure.storage.credentials.type=basic
storage-filesystem.azure.storage.credentials.username=user
storage-filesystem.azure.storage.credentials.password=secret

Supported properties

Property Description

endpoint

Sets the blob service endpoint, additionally parses it for information (SAS token).

connection-string

Sets the connection string to connect to the service.

encryption-scope

Sets the encryption scope that is used to encrypt blob contents on the server.

credentials.type

The type of the credentials provider. Supported values are:

  • "basic"
    Credentials will be loaded from the credentials.username and credentials.password properties.

  • "shared-key"
    Credentials will be loaded from the credentials.account-name and credentials.account-key properties.

credentials.username

The username, used when "credentials.type" is "basic".

credentials.password

The password, used when "credentials.type" is "basic".

credentials.account-name

The account name, used when "credentials.type" is "shared-key".

credentials.account-key

The account key, used when "credentials.type" is "shared-key".