MetorialDocs

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

Sign-in methods

MethodTypeWhat a person provides
SAS TokenCustom credentialssasToken
Work & Personal (default)OAuthSigns in to Azure Blob Storage
Work OnlyOAuthSigns 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:

ScopeNameWhat it allows
https://storage.azure.com/.defaultAzure Storage Full AccessFull access to Azure Storage resources including blobs, containers, queues, tables, and files
openidUser ProfileRead your basic profile information
offline_accessOffline AccessMaintain 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:

metorial-admin portals access list <portal-id> --type provider_template --search "azure blob storage"

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

metorial catalog search "azure blob storage"
metorial setup <catalog-item-id>

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.

metorial list "azure blob storage"
metorial client list
metorial install <client-identifier> <integration-id>

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 list "azure blob storage"
metorial tools <integration-id>
metorial call <integration-id> list_containers -d '{}'

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. Needs containerName and blobName.
  • get_blob_properties: Retrieve system properties and user-defined metadata for a blob without downloading its content. Needs containerName and blobName.
  • list_containers: List all containers in the Azure Blob Storage account.
  • get_container_properties: Retrieve properties and metadata for a specific container. Needs containerName.
  • list_blobs: List blobs in a container. Needs containerName.

Write tools (8)

  • create_snapshot: Create a read-only snapshot of a blob at its current state. Needs containerName and blobName.
  • set_container_metadata: Set user-defined metadata on a container. Needs containerName and metadata.
  • upload_blob: Upload content as a blob to a container. Needs containerName, blobName and content.
  • manage_lease: Acquire, renew, release, or break a lease on a blob or container. Needs containerName and action.
  • copy_blob: Copy a blob from a source URL to a destination in the storage account. Needs containerName, blobName and sourceUrl.
  • append_to_blob: Append content to an existing append blob. Needs containerName, blobName and content.
  • update_blob_properties: Update system properties and/or user-defined metadata on a blob. Needs containerName and blobName.
  • set_blob_tier: Change the access tier of a block blob. Needs containerName, blobName and accessTier.

Destructive tools (2)

  • delete_blob: Permanently delete a blob from a container. Needs containerName and blobName.
  • manage_container: Create or delete a container in Azure Blob Storage. Needs containerName and action.

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