Issue
- How to store file from Liferay to Azure blob storage container in Liferay DXP 7.3
Environment
- Liferay DXP 7.3
Resolution
-
Configuring the store
To configure the store, go to System Settings > File Storage > Azure Blob Storage and fill in the configuration values. You’ll need to provide at least these values:
-
Connection string
-
Container name
You can access these values from your Azure dashboard, in the Storage Accounts > Access Keys and Storage Accounts > Containers sections.
Once you have the System Settings configuration in place, you need to set the Azure Blob Storage store as default. For that, set the following property in the
portal-ext.properties
file:dl.store.impl=com.liferay.portal.store.azure.AzureStore
Using the store in a clustered environment
To use the Azure Blob Storage store in a clustered environment, the configuration on all nodes must be identical. In particular, make sure the portal-ext.properties file and the Azure Blob Storage store settings in System Settings are the same.
Database rollback limitation
Warning: If a database transaction rollback occurs in a Document Library, the transaction’s file system changes are not reversed. Inconsistencies between Document Library files and those in the file system store can occur and may require manual synchronization. All of the DXP stores except DBStore are vulnerable to this limitation.
-