For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Export Cloud Backup Snapshots to Azure Blob Storage

Note

This feature is not available for Free clusters and Flex clusters. To learn more about which features are unavailable, see Atlas Free Cluster Limits.

Atlas lets you export your Cloud Backup snapshots to Azure Blob Storage containers. You can export snapshots in two ways:

Each procedure requires the same prerequisites.

For an overview of how Atlas exports snapshots and the files it uploads, see Export Cloud Backup Snapshots to Object Storage.

You can't perform the following actions:

To export your Cloud Backup snapshots, you need an M10 or higher Atlas cluster with Cloud Backup enabled. In addition, to set up Atlas access to your object store, you must do the following:

1

Set up an Azure Service Principal with an access policy for your Atlas project.

2

Assign the Storage Blob Delegator and Storage Blob Data Contributor roles to your Azure Service Principal.

To assign the roles to your Service Principal, you need the following information:

Role
Description

Storage Blob Delegator

This allows the Service Principal to sign SAS tokens to access the Azure Storage Container. To assign this role, run the following command:

az role assignment create --assignee-object-id <service-principal-id> --role "Storage Blob Delegator" --scope /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Storage/storageAccounts/<storage-account-name>

Storage Blob Data Contributor

This allows read, write, and delete blob access for the Azure Storage Container. To assign this role, run the following command:

az role assignment create --assignee-principal-type ServicePrincipal --assignee-object-id <service-principal-id> --role "Storage Blob Data Contributor" --scope /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Storage/storageAccounts/<storage-account-name>/blobServices/default/containers/<container-name>

To create an export policy for automatic exports, run the following procedure:

To create an export job for a single snapshot, run the following procedure: