Azure Storage
<dependency>
<groupId>one.microstream</groupId>
<artifactId>microstream-afs-azure-storage</artifactId>
<version>07.01.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.
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:
|
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". |