Try our conversational search powered by Generative AI!

Daniel Ovaska
Dec 6, 2021
  2311
(0 votes)

Uploading blobs to DXP

I recently went searching for how to upload blobs into DXP and thought it would probably be good to share my experience since I didn't find any relevant documentation for this area.

When signing up to the DXP service you will get access to the paas portal at https://paasportal.episerver.net/. You might think you could upload blobs there but you will be wrong. That portal will make it possible to move content and blobs between environments however. 

There is also a deployment api that you can use to automate deploys from Azure devops or similar. Perfect for deploying code and configurations to you new web app but sadly not blobs. 

For integration you will also get access to portal.azure.com where you can see your resources in Azure including webapp and Application insights. This is normally where you will also see your connected storage account for a normal Azure web site. But alas, no.

Uploading using Azure Storage Explorer

The "secret" tool is the Azure Storage Explorer that you can download and install yourself. Ask Optimizely support for an account to your integration environment and you are in business! Add your new account by clicking on the person icon and far far bottom left you can find and "Add an account" option. Choose "Storage account or service"

and then set the Account name and key you get from Optimizely support. You are in business!

Upload folder is great for sharing bacpac files with Optimizely support and there, finally

/mysitemedia

is where you need to upload your precious blobs. 

Configure solution to use the blobs

While you are at it you might want to configure your solution to actually use those blobs as well. 

For your Web.Integration.config you will also need to point out this folder to tell the CMS to use your new blobs:

...
<blob defaultProvider="azureblobs">
      <providers>
        <add name="azureblobs" type="EPiServer.Azure.Blobs.AzureBlobProvider,EPiServer.Azure"
              connectionStringName="EPiServerAzureBlobs" container="mysitemedia"/>
      </providers>
</blob>
...

Happy coding!

Dec 06, 2021

Comments

Scott Reed
Scott Reed Dec 6, 2021 10:45 AM

Having use Azure Storage Explorer a lot over the years I can say that for large upload/downloads such as backups it can be quite slow. If there's anything significant I would use powershell directly to do it

Vincent
Vincent Dec 10, 2021 01:53 AM

There is a dedicated section in Optimizely Content Cloud training described the entire process of deploying to DXP which covers how to upload blobs to azure storage container. If you do have subscription, I highly recommend watching "08 Content Cloud Developer - Deploying, Troubleshooting, and Securing"

p.s. If you need to upload large number of files to blob storage, azcopy.exe is something you should try as well. Upload files to Azure Blob storage by using AzCopy v10 | Microsoft Docs

Please login to comment.
Latest blogs
Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024