Connect Azure Blob Storage
The Azure connector holds the client ID and secret of a Microsoft Entra app, so an Azure Blob Storage source can read blobs from a storage container and sync them into a Knowledge.
Who can set it up
- In Rational AI: a role with Create on the Connectors row to add the connector, Create on the Sources row and Use on the Connectors row to add the source, and Update on the Knowledge row to attach it. Sources needs the Knowledge module in your license. See Manage roles and users.
- In Microsoft Entra ID: someone who can register applications and create client secrets.
- In Azure: someone who can assign roles on the storage account, such as an Owner or a User Access Administrator.
What you need
- The storage account and the container that hold the files.
- Your Microsoft Entra Directory (tenant) ID.
- An app registration for Rational AI with a client secret.
- A Knowledge to receive the files.
| Permission | Why it's needed |
|---|---|
| Storage Blob Data Reader on the container, or on the storage account | Lets the app list and download blobs. It grants no write access. |
Set up
Check with Rational AI before you rely on this source
The Add new source dialog has no field for the storage account name, and its file panel doesn't list Azure containers. Test the source on a small container first, and contact Rational AI support if the first sync fails.
- In the Microsoft Entra admin center, go to App registrations and select New registration. Name the app, keep Accounts in this organizational directory only, and register it. No redirect URI is needed.
- On the app's Overview, copy the Application (client) ID and the Directory (tenant) ID.
- In Certificates & secrets, create a client secret and copy its Value. Azure shows it only once.
- In the Azure portal, open the storage account, then the container. In Access control (IAM), add a role assignment: Storage Blob Data Reader, assigned to the app you registered.
- In Rational AI, go to Settings → Connectors, select Add, select Azure, then select Add.
- Enter a Name, paste the Client ID and the Client Secret, and select Add.
- Go to Settings → Sources and select Add.
- Enter a Name. In Type, find Azure Blob Storage and select your connector under it.
- In Root, enter the container, optionally followed by a folder path, for example
documents/contracts. In Tenant, enter the Directory (tenant) ID. - Select Add. Rational AI creates the source and runs its first sync.
- Go to Settings → Knowledge, open the Knowledge, select the Sources tab, and pick the source in Add source....
- Open the source's menu on that tab and select Process now.
A new source syncs only when you select Sync now. To sync on a schedule, see Choose when a source syncs.
What gets synced
- The blobs under the root you entered.
- Changes on each sync. Azure Blob Storage sources support Periodic and Manual only: a container can't report changes without event notifications set up in your Azure subscription.
Rational AI never writes to the container. Blobs deleted from it leave the Knowledge too when the source's On delete setting is Cascade delete, the default.
Limits
- The dialog has no storage account field, and you can't pick folders in the file panel for this type.
- One source reads one root. To sync several containers, add one source for each.
Troubleshooting
| Symptom | What to check |
|---|---|
| The file panel stays on No files to show yet | The panel doesn't list Azure containers. Enter the Root instead. |
| The first sync fails | Open the source, select the failed status to read the Sync error, and send it to Rational AI support with the storage account name. |
| The sync error mentions authorization or a 403 status | The app has no Storage Blob Data Reader role on the container or storage account. Role assignments can take a few minutes to apply. |
| The sync error mentions the client secret | The secret expired or was deleted. Create a new one in Certificates & secrets and enter it in the connector's Configuration. |
Next steps
- Configure data sources: sync modes, failing syncs, and processing on change.
- Connect Amazon S3: sync objects from an S3 bucket.
- Connect OneDrive and SharePoint: sync Microsoft 365 files.