Skip to content

Azure Storage sync

Umbraco mirrors its published content into Azure Blob Storage as JSON, one blob per item, so an Azure AI Search index has a flat set of files to crawl instead of having to call the CMS. Nothing reads these blobs back into Umbraco — like the spreadsheet exports, this direction is one-way.

Unlike the exports, it is not an endpoint you run. It is a set of notification handlers that fire as editors work.

{media blob container}/website-content/{item key}.json

The container is not separately configurable — it is the same container the media file system uses, read from Umbraco:Storage:AzureBlob:Media:ContainerName. The website-content/ prefix is a compiled constant.

Site Container Folder
Legacy (UmbracoProject) nri website-content/
Umbraco 17 head (NRI.CMS) umbraco-17 (umbraco-17-staging in development) website-content/

The file name is the item’s GUID key, so a blob is stable across renames and moves. For documents and media the body is the Delivery API representation of the item — the same shape the /umbraco/delivery/api responses use. Dictionary items use their own small shape: key, id, last_modified, and translations (each a culture and value).

The connection string comes from Umbraco:Storage:AzureBlob:Media:ConnectionString, and the container is created, without public access, if it does not exist.

Notification Effect
ContentCacheRefresherNotification Publishing writes the document. RefreshBranch — “save and publish with descendants” — walks the branch and writes every published descendant too.
MediaCacheRefresherNotification Saving media writes it, with the same branch walk for folders.
DictionaryItemSavedNotification Writes the dictionary item and all its translations.

Images are built through the media-with-crops builder; all other media through the plain media builder.

Only deletion. This is the rule to remember:

Deletes are caught twice, because the two signals cover different ground:

Signal Covers
Remove flag on a cache-refresher payload The deleted item itself
ContentDeletedNotification, MediaDeletedNotification, DictionaryItemDeletedNotification Everything the delete notification reports, which is how descendants of a deleted branch get cleaned up

Deleting the same blob twice is harmless — the delete is an “if exists”.

A blob is never removed because a lookup came back empty. The published cache can legitimately read null mid-refresh, and treating that as a deletion would drop live pages out of the index.

  • Recycle bin counts as a delete. Moving a document to the bin takes it out of the published cache with a Remove payload, so the blob goes with it. Restoring the document does not bring the blob back — republishing does.
  • Unpublishing a parent orphans its descendants’ blobs. Descendants are not themselves unpublished in the database; they just fall out of the published cache. Nothing reports them, so their blobs stay until those items are deleted.
  • The legacy site never deletes anything. UmbracoProject has the upload half of this feature only, so nri/website-content/ accumulates JSON for content that no longer exists. Only the Umbraco 17 head cleans up after itself.

On the Umbraco 17 head the handlers are registered in every environment, by an IComposer (Features/AzureAiSearch/Composer.cs). What stops them outside Production is a runtime IsProduction() check in the uploader, on both the write and the delete path. Development’s settings name umbraco-17-staging, not the production container, but nothing is written there either.

Staging environments are also excluded on the head — the check is IsProduction, not “is not development”. The legacy site checks !IsDevelopment() instead, so legacy Staging does upload.

While uSync is importing, the handlers stand down, so a uSync import neither writes nor deletes blobs.

On the Umbraco 17 head, failures are logged and swallowed. Nothing propagates. (The legacy site throws when its configuration is missing.)

That is deliberate: the delete notifications are raised inside the service’s own scope, so an exception escaping a handler would surface to the editor as “cannot delete this page”. A rotated storage key must not be able to block editing.

The practical consequence is that this feature fails silently. If the blobs stop updating, the evidence is in the Umbraco log, not on screen. Search the log viewer for:

  • Failed to upload / Failed to delete — the container was reachable but the operation failed
  • Could not reach the Azure Blob container — connection string or network
  • Azure Blob configuration missing — no connection string or container name configured at all

A folder whose newest blob is months old, while content is still being published, means the feature is broken or writing somewhere else — check the container name in the running app’s configuration before assuming the handlers are dead.

Umbraco 17 head src/NRI.CMS/Features/AzureAiSearch/
Legacy src/NRI.CMS.Extensions/AzureAiSearch/

NRI.CMS.Extensions is referenced only by UmbracoProject, so the legacy and current implementations are entirely separate code — a change to one does not affect the other.

Both are compiled C#. Any change needs an application restart, not just a recycle of the front end.