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
- Navigate to Azure Portal - Log in to your Azure portal.
- Create a New Storage Account - Go to the 'Storage accounts' section and click on 'Add' to create a new storage account.
- 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
- Open Storage Account - Once the storage account is created, open it.
- 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
- In Salesforce, open the Document Management app, go to Libraries, and select Azure Blob.
- Click Add New Container.
- Enter the Storage Account Name and Container Name.
- (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.
- Click Continue.
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.

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

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.
It tells you which step stopped it. Fix that and run the script again.
5 - Paste the IDs and connect
- Paste the Tenant ID and Client ID into CloudFiles.
- 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.
- 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.

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:
- In Microsoft Entra ID > App registrations, create an app named CloudFiles Storage (or open it if you already have one).
- On the app, open Certificates & secrets > Federated credentials > Add credential, and choose Other issuer.
- Copy the Issuer, Subject identifier and Audience from CloudFiles into the credential.
- On the storage account, add the role Storage Blob Delegator for the app.
- On the container, add the role Storage Blob Data Contributor for the app.
- 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)
- 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
- 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)
- Once enabled, any files or folders that are uploaded, updated, or deleted in Azure will be reflected in CloudFiles.

If the connection doesn't go through
| If CloudFiles says | What to do |
|---|---|
| The federated credential doesn't match | Run the setup script again, then click Connect. |
| A storage permission is missing | Wait 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 connection | Ask your Azure administrator, or contact support@cloudfiles.io. |
| Only a Close button, in a sandbox | The 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.



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.