A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

EPiServerAzureBlobs setup

Vote:
 

We’re in the process of setting up our CMS 12 environment and migrating content from CMS 11. In CMS 11, we handled blob storage by copying the blobs directly via the CMS 11 paasportal mirgration tool.

According to Optimizely support, for CMS 12 we should add services.AddCmsCloudPlatformSupport in our Startup.cs file. They explained that we don’t need to include the EPiServerAzureBlobs connection string in appsettings.json, since environment variables are supposed to handle that automatically. However, when we omit the connection string, none of our blobs appear.

The question I’m trying to resolve is whether there’s a way to configure a default setup that works consistently across environments. We don’t have direct access to their blob storage, and support has confirmed they won’t provide it. The documentation they shared only gives us a temporary link that seems to expire after about six hours. What we need is a stable, non-expiring configuration.

Any guidance or suggestions would be greatly appreciated.

#341255
Dec 11, 2025 16:42
Vote:
 

Hi

In DXP you can’t control the actual blob connection strings – Optimizely manages EPiServerAzureBlobs setting for you.
We move blobs between environments using the Deployment API instead of trying to access storage directly.
Locally we use file-based storage and only enable Cloud Platform support in real DXP environments:

if (_webHostingEnvironment.IsDevelopment())
{
    AppDomain.CurrentDomain.SetData(
        "DataDirectory",
        Path.Combine(_webHostingEnvironment.ContentRootPath, "App_Data"));
}

// DXP cloud hosting requirements
if (!_webHostingEnvironment.IsDevelopment()
    && _webHostingEnvironment.EnvironmentName != SiteConstants.Environment.TestEnvironment)
{
    services.AddCmsCloudPlatformSupport(_configuration);
}

#341257
Dec 11, 2025 22:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.