Set up Azure Blob Storage in Metorial for AI agents
Share Azure Blob Storage with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or SAS token sign-in, 15 tools (5 read-only).
To give your team Azure Blob Storage in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Azure Blob Storage integration in a Metorial portal, and each person signs in to Azure Blob Storage with their own account. Agents can upload, download, copy, and delete blobs (block, append, page) in Azure cloud storage. The integration has 15 tools, 5 read-only, 8 write and 2 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Azure Blob Storage in a portal and how each person connects
- The 3 OAuth scopes Azure Blob Storage can request, and what each one allows
- How to keep the 5 read-only tools and reject the other 10
Before you start
- A portal with at least one access group
- An account with Azure Blob Storage for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| SAS Token | Custom credentials | sasToken |
| Work & Personal (default) | OAuth | Signs in to Azure Blob Storage |
| Work Only | OAuth | Signs in to Azure Blob Storage |
The portal and metorial setup use Work & Personal unless someone picks another method.
SAS Token
To connect, a person enters:
sasToken: Shared Access Signature token (the query string portion starting with "sv=")
Work & Personal
People sign in to Azure Blob Storage and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://storage.azure.com/.default | Azure Storage Full Access | Full access to Azure Storage resources including blobs, containers, queues, tables, and files |
openid | User Profile | Read your basic profile information |
offline_access | Offline Access | Maintain access with a refresh token |
Work Only
It requests the same scopes as Work & Personal.
Setup settings
Whichever method you pick, setup also asks for:
storageAccountName: The name of the Azure Storage account (e.g. "mystorageaccount")
Use your own Azure Blob Storage OAuth app
With your own OAuth app, people see your company's name on the Azure Blob Storage consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Azure Blob Storage and copy the Redirect URI.
Register the app
In the Microsoft Entra admin center, go to Entra ID, App registrations and select New registration. Under Authentication, add a redirect URI on the Web platform and paste the one from Metorial. Create a client secret under Certificates & secrets and copy its Value, which Microsoft shows only once.
The Microsoft 365 guide covers the app registration, client secret and admin consent in Microsoft Entra step by step.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Azure Blob Storage integration.
Admin: share Azure Blob Storage in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Azure Blob Storage. Under Auth Method, keep Work & Personal or pick another. For how members connect, choose Each person connects, so everyone signs in to Azure Blob Storage as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Azure Blob Storage.
Choose who gets it
Add the access groups that should see Azure Blob Storage. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Azure Blob Storage integration. Once it exists, check which groups have it:
Employee: connect Azure Blob Storage
In the portal
Open Azure Blob Storage in the catalog
Sign in to your portal and open Azure Blob Storage. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. An Azure Blob Storage sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses Work & Personal. To connect with SAS Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Azure Blob Storage connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 5 read-only tools, such as list_blobs and download_blob, and lose the 8 write tools, such as copy_blob or upload_blob, and the 2 destructive tools, such as delete_blob or manage_container.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 15 tools, minus any you rejected. list_containers takes no input. It lists all containers in the Azure Blob Storage account.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (5)
download_blob: Download the content of a blob. NeedscontainerNameandblobName.get_blob_properties: Retrieve system properties and user-defined metadata for a blob without downloading its content. NeedscontainerNameandblobName.list_containers: List all containers in the Azure Blob Storage account.get_container_properties: Retrieve properties and metadata for a specific container. NeedscontainerName.list_blobs: List blobs in a container. NeedscontainerName.
Write tools (8)
create_snapshot: Create a read-only snapshot of a blob at its current state. NeedscontainerNameandblobName.set_container_metadata: Set user-defined metadata on a container. NeedscontainerNameandmetadata.upload_blob: Upload content as a blob to a container. NeedscontainerName,blobNameandcontent.manage_lease: Acquire, renew, release, or break a lease on a blob or container. NeedscontainerNameandaction.copy_blob: Copy a blob from a source URL to a destination in the storage account. NeedscontainerName,blobNameandsourceUrl.append_to_blob: Append content to an existing append blob. NeedscontainerName,blobNameandcontent.update_blob_properties: Update system properties and/or user-defined metadata on a blob. NeedscontainerNameandblobName.set_blob_tier: Change the access tier of a block blob. NeedscontainerName,blobNameandaccessTier.
Destructive tools (2)
delete_blob: Permanently delete a blob from a container. NeedscontainerNameandblobName.manage_container: Create or delete a container in Azure Blob Storage. NeedscontainerNameandaction.
Triggers
Azure Blob Storage has 1 trigger, which fire on events in Azure Blob Storage:
blob_events: Receives Azure Event Grid notifications for blob lifecycle events including creation, deletion, tier changes, and renames.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Azure Blob Storage there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Microsoft 365 guide: the app registration, client secret and admin consent in Microsoft Entra
- Azure Blob Storage on metorial.com: the integration overview