cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to use Azure BLOB in Hybris - [MediaManager] Problems with media storage connection occured

Former Member
0 Kudos
3,169

I'm getting this error: [MediaManager] Problems with media storage connection occured during the init process after setting all the configuration for Azure Blob storage. I done these steps in Azure Cloud: (Create Account Key, Create User, Create Storage). I checked the connections with the Microsoft Azure Storage Manager and I was able to connect using the Account Key + User and the connection string. My issue is in Hybris, I added these parameters in my local.properties but all the time the same error during the 'Initializing media storages'. I'm using Hybris 1808 (the newest version).

media.folder.azureMedias1.storage.strategy=windowsAzureBlobStorageStrategy media.folder.azureMedias1.endPointProtocol=https media.folder.azureMedias1.connection=DefaultEndpointsProtocol=https;AccountName='USER';AccountKey='KEY' media.folder.azureMedias1.public.base.url=https://'USER'.blob.core.windows.net/ media.folder.azureMedias1.containerAddress=test media.folder.azureMedias1.local.cache=false media.folder.azureMedias1.cleanOnInit=false

Also with the parameter (media.folder.azureMedias1.windowsAzureBlobStorageStrategy.XXX)

Any idea?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Oliver

Have you already configured the hotfolder un Sap Cloud Public?

Regards

Former Member
0 Kudos

no, i'm using the Azure Cloud.

ProLifeTip: run, don't walk away from SAP Cloud

Former Member
0 Kudos

Did you try to set the required properties as per documentation?

https://help.hybris.com/scc/pcd/6e23a26fe9c8472380f9101e8a9fe1c3.html

Former Member
0 Kudos

Also be aware of the default setting in extension "azurecloud". A hybris commerce init will delete all Blobs in your storage account! Even those containers hybris was not even configured to use. containerAddress is silently ignored.

 media.globalSettings.windowsAzureBlobStorageStrategy.cleanOnInit=true
Former Member
0 Kudos

Hello Pau,

i'm also struggeling with the setup of Azure Blobs. Did you manage to get the configuration rigth? Regards, Oliver

Former Member
0 Kudos

looks like SAP 'forgot' some important information. First you need to enable the optional extension "azurecloud"

then use this properties:

 media.default.secured=false
 media.default.storage.strategy=windowsAzureBlobStorageStrategy
 media.globalSettings.windowsAzureBlobStorageStrategy.local.cache=true
 media.globalSettings.windowsAzureBlobStorageStrategy.secured=true
 media.globalSettings.windowsAzureBlobStorageStrategy.connection=DefaultEndpointsProtocol=http;AccountName=yourAccount;AccountKey=yourAccountKey
 media.globalSettings.windowsAzureBlobStorageStrategy.public.base.url=https://YOUR_STORAGEBLOBNAME.blob.core.windows.net/
 media.globalSettings.windowsAzureBlobStorageStrategy.containerAddress=mycontainer