Azure Blob Storage for Documenten API
By default, Open Zaak stores the contents (inhoud) of documents (EnkelvoudigInformatieObject in the API)
on disk. In addition to this, there is also support for using Azure blob storage.
Configuration
Warning
When switching from filesystem storage to Azure storage for an Open Zaak instance that already contains documents, the existing documents must be migrated to the new storage manually, as Open Zaak currently does not provide an automatic migration feature.
In order to use Azure blob storage, several environment variables must be configured:
Set
DOCUMENTEN_API_BACKENDtoazure_blob_storage(see Environment configuration reference >Documenten API)See Environment configuration reference >
Documenten API Azure Blob Storagefor the remaining variables
To configure authentication, a service principal must be configured in Azure. Follow the instructions to create an app in Azure for Open Zaak. After configuring an app for Open Zaak, the following environment variables must be set:
AZURE_ACCOUNT_NAME: the name of the storage account that will be used.AZURE_CLIENT_ID: copy the value ofApplication (client) IDunderOverview.AZURE_TENANT_ID: copy the value ofDirectory (tenant) IDunderOverview.AZURE_CLIENT_SECRET: navigate toManage > Certificates & secretsand create a new client secret, then copy the value of that secret.
In addition to this, the app needs permission to read, write and delete blobs in Azure Storage. This can be done as follows:
Navigate to the storage account that will be used in Azure.
Click on
Access Control (IAM)and thenAdd>Add role assignment.Search for
Storage Blob Data Contributorand select that role, clickNext.Choose
Assign access to>User, group or service principaland thenSelect members.Search for the name of the created app and select it.
Click
Review + assignto assign the role.
It may take up to a minute before Open Zaak actually can access the Azure storage API.
Additional information
If this integration is configured, the inhoud of documents will be stored in Azure.
It is important to note that the following files are still stored on disk:
inhoudforbestandsdelen: parts of files that are temporarily stored on disk, until they are merged into a single large file, after which the temporary files are removed.Import metadata and report files for bulk imports (see Importing documents in bulk).