Connected with the CloudFiles app?

Containers connected the older way, with the CloudFiles app in Azure, are on a legacy setup. Switch them to a federated credential: see How to switch an Azure Blob container to a federated credential.

Until every container in your org and its sandboxes is switched, Add New Container keeps showing the legacy setup instead of the steps below, so switch your existing containers before you add new ones.

1 - Create a Storage Account

  1. Navigate to Azure Portal - Log in to your Azure portal.
  2. Create a New Storage Account - Go to the 'Storage accounts' section and click on 'Add' to create a new storage account.
  3. Configure the Storage Account - Follow the on-screen instructions to configure your storage account, selecting the appropriate subscription, resource group, and other relevant settings.

2 - Create a Container in Storage Account

  1. Open Storage Account - Once the storage account is created, open it.
  2. Create Container - In the storage account dashboard, locate the 'Containers' section and create a new container. Assign a name and set the access to Private (no anonymous access)

3 - Enter the container in CloudFiles

  1. In Salesforce, open the Document Management app, go to Libraries, and select Azure Blob.
  2. Click Add New Container.
  3. Enter the Storage Account Name and Container Name.
  4. (Optional) Enter a Prefix: the folder path in the container that CloudFiles will use, so CloudFiles works in one section of the container instead of all of it.
  5. Click Continue.

Note

A prefix is required when the container is already connected, in this org or another: each connection needs its own prefix, and the prefixes can't overlap. For example, team-a/ and team-b/ are valid, but team-a/ and team-a/subfolder/ are not. A container connected without a prefix can't be connected again.

Connect Azure Blob container: Storage Account Name and Container Name entered

4 - Run the setup script in Azure

  1. Click Copy setup script.
  2. In the Azure portal, open Cloud Shell (the >_ icon at the top of the page) and choose Bash.
  3. Paste the script and press Enter.
  4. When it finishes, it shows a Tenant ID and a Client ID. Keep these for the next step.

Azure setup required: the federated credential values, Copy setup script, and the Tenant ID and Client ID fields

The script creates an app called CloudFiles Storage in your Azure account and gives it access to this container. It is safe to run more than once.

If the script stops

It tells you which step stopped it. Fix that and run the script again.

5 - Paste the IDs and connect

  1. Paste the Tenant ID and Client ID into CloudFiles.
  2. Enter a Drive Label: the name users see for this storage in CloudFiles. It is optional for the first container in the org and required from the second one onward.
  3. Click Connect.

Azure can take a minute or two to finish. CloudFiles keeps checking while it does, so you don't need to click again. When it is done, your container appears under Connected Containers.

Tenant ID, Client ID and Drive Label filled in, ready to connect

Prefer the Azure portal?

If you can't use Cloud Shell, click Set up in the Azure portal instead on the setup screen. CloudFiles shows the same steps with your details filled in:

  1. In Microsoft Entra ID > App registrations, create an app named CloudFiles Storage (or open it if you already have one).
  2. On the app, open Certificates & secrets > Federated credentials > Add credential, and choose Other issuer.
  3. Copy the Issuer, Subject identifier and Audience from CloudFiles into the credential.
  4. On the storage account, add the role Storage Blob Delegator for the app.
  5. On the container, add the role Storage Blob Data Contributor for the app.
  6. Copy the Directory (tenant) ID and Application (client) ID from the app's Overview page into CloudFiles.

Connecting more containers

Add each new container in CloudFiles and run the script it gives you. The script uses the same app every time, so the Tenant ID and Client ID stay the same. Sandboxes get their own app, CloudFiles Storage (sandboxes).

6 - Enable auto sync in Azure (Optional)

  1. If you wish to have a 2 way sync to view your files in Azure through the CloudFiles widget, please follow the steps mentioned in How to enable auto-sync on Azure Blob

7 - Enable Sync in CloudFiles

  1. Turn on Enable Sync to automatically sync changes between your Azure container and CloudFiles. (Completing step 6 is mandatory if you wish to turn this toggle on)
  2. Once enabled, any files or folders that are uploaded, updated, or deleted in Azure will be reflected in CloudFiles.

NoteSync only applies to changes made after the toggle is enabled. Existing files in your azure container will not appear automatically in CloudFiles. To make historical data available, a custom (paid) migration is required. Please contact support@cloudfiles.io for more details.

If the connection doesn't go through

If CloudFiles saysWhat to do
The federated credential doesn't matchRun the setup script again, then click Connect.
A storage permission is missingWait a few minutes for Azure to finish, or run the setup script again, then click Connect.
Your Azure account doesn't allow this kind of connectionAsk your Azure administrator, or contact support@cloudfiles.io.
Only a Close button, in a sandboxThe sandbox is still being set up. Try again in a few minutes.

Column Configuration for Azure

You can customize the columns displayed in widgets through the Library Configuration tab in Document Management for Azure. Refer to the images for visual understanding.

NoteCustom Azure columns can only be created and managed in the CloudFiles app. You can view and update these column values in the CloudFiles Content Library or CloudFiles widget. They are not available in Azure Blob Storage, so you cannot view or edit them directly there.

Disconnect Azure Containers

Users can disconnect Azure Containers directly from the Salesforce app. This action will remove the storage connection along with any associated metadata within the app.