Azure Storage
<dependency>
<groupId>org.eclipse.store</groupId>
<artifactId>afs-azure-storage</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>12.10.0</version>
</dependency>
BlobServiceClient client = ...;
BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
AzureStorageConnector.Caching(client)
);
EmbeddedStorage.start(fileSystem.ensureDirectoryPath("storage"));
Configuration
When using external configuration Azure Storage can be set as follows.
# optional, enforces checks
storage-filesystem.target=azure.storage
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 | Type |
---|---|---|
endpoint |
Sets the blob service endpoint, additionally parses it for information (SAS token). |
String |
connection-string |
Sets the connection string to connect to the service. |
String |
encryption-scope |
Sets the encryption scope that is used to encrypt blob contents on the server. |
String |
credentials.type |
The type of the credentials provider. Supported values are:
|
String |
credentials.username |
The username, used when "credentials.type" is "basic". |
String |
credentials.password |
The password, used when "credentials.type" is "basic". |
String |
credentials.account-name |
The account name, used when "credentials.type" is "shared-key". |
String |
credentials.account-key |
The account key, used when "credentials.type" is "shared-key". |
String |
Depending on the amount of data and transactions, charges may apply depending on service usage. Please check with your service provider for details. |