> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/azure-blob-storage.md).

# Azure Blob Storage

Connect to Azure Blob Storage for file storage and retrieval.

* Knowledge base source

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector                             | Authentication |
| ------------------------------------- | -------------- |
| Azure Blob Storage (Entire Account)   | Credentials    |
| Azure Blob Storage (Single Container) | Credentials    |

#### Azure Blob Storage (Entire Account)

Connect to an entire Azure Blob Storage account (all containers) using a storage account connection string.

**Set up in Azure Blob Storage**

1. Sign in to the Azure portal and open the Storage account that contains your blob containers.
2. In the left menu under Security + networking, select Access keys.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Azure Blob Storage (Entire Account)**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field     | Required | What to enter                                                                                               |
| ----------------- | -------- | ----------------------------------------------------------------------------------------------------------- |
| Connection String | Yes      | Azure Blob Storage connection string from Azure Portal. [Provider instructions](https://portal.azure.com/). |

**Provider documentation:** [Setup reference](https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string).

#### Azure Blob Storage (Single Container)

Connect to a single Azure Blob Storage container using a container-scoped SAS URL, without sharing storage account keys.

**Set up in Azure Blob Storage**

1. Prepare the Azure Blob Storage account or service that the workflow will access. Grant access to the required resources and operations.
2. **Blob SAS URL:** Container-scoped Blob SAS URL from Azure Portal. Go to Storage Account -> Containers -> your container -> Shared access tokens, grant Read and List (plus Write and Create to upload), then copy the Blob SAS URL. It looks like https\://\<account>.blob.core.windows.net/\<container>?\<sas-token>.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Azure Blob Storage (Single Container)**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                                                                                                                                                                                                                                                                             |
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Blob SAS URL  | Yes      | Container-scoped Blob SAS URL from Azure Portal. Go to Storage Account -> Containers -> your container -> Shared access tokens, grant Read and List (plus Write and Create to upload), then copy the Blob SAS URL. It looks like https\://\<account>.blob.core.windows.net/\<container>?\<sas-token>. [Provider instructions](https://portal.azure.com/). |

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Azure Blob Storage** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### List Containers

List the containers available to the connection.

**Inputs**

No input fields are required in this catalog entry.

**Outputs**

| Field      | Type          | Description                                           |
| ---------- | ------------- | ----------------------------------------------------- |
| Containers | string\_array | Names of the containers available to this connection. |

#### Get File

Download a blob from the connected Azure Blob Storage container.

**Inputs**

| Field       | Type            | Required | Description                                                                                                                                                             |
| ----------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Container   | select (string) | No       | The container to use. Leave empty for a container-scoped connection, which is fixed to a single container. Options load from the selected connection.                   |
| Blob Path   | string          | Yes      | Path of the blob to download within the container.                                                                                                                      |
| Get Content | boolean         | No       | Whether to extract the blob's text alongside the signed URL. Off by default, since containers often hold media and other blobs with no text to extract. Default: false. |

**Outputs**

| Field              | Type   | Description                                                                                                                |
| ------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| File               | object | Metadata of the downloaded blob.                                                                                           |
| File URL           | string | Signed URL to download the file (expires after 24 hours).                                                                  |
| File Content       | string | Text extracted from the blob when Get Content is on. Empty when it is off or the blob holds no extractable text.           |
| File Content Error | string | Why the text could not be extracted. Empty when extraction worked, when it was off, or when the blob simply holds no text. |

#### Get Files

Download multiple blobs from the connected Azure Blob Storage container.

**Inputs**

| Field       | Type            | Required | Description                                                                                                                                                                                                                                  |
| ----------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Container   | select (string) | No       | The container to use. Leave empty for a container-scoped connection, which is fixed to a single container. Options load from the selected connection.                                                                                        |
| Blob Paths  | array           | Yes      | Up to 50 blob paths to download from the container, each up to 100 MB (use Get File for larger blobs). Duplicate paths are downloaded once.                                                                                                  |
| Get Content | boolean         | No       | Whether to extract each blob's text alongside its signed URL. Off by default, since containers often hold media and other blobs with no text to extract. Extraction is slower, so fewer paths per run go further with it on. Default: false. |

**Outputs**

| Field        | Type        | Description                                                                                                |
| ------------ | ----------- | ---------------------------------------------------------------------------------------------------------- |
| Files        | dict\_array | The blobs that were downloaded, each with a signed URL and metadata, plus its text when Get Content is on. |
| Failed Files | dict\_array | Blob paths that could not be downloaded and the reason for each.                                           |

#### List Files

List blobs in the connected Azure Blob Storage container.

**Inputs**

| Field              | Type            | Required | Description                                                                                                                                           |
| ------------------ | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Container          | select (string) | No       | The container to use. Leave empty for a container-scoped connection, which is fixed to a single container. Options load from the selected connection. |
| Prefix             | string          | No       | Only list blobs whose path starts with this prefix.                                                                                                   |
| Max Results        | integer         | No       | Maximum number of entries to return (1-5000). Minimum: 1. Maximum: 5000. Default: 1000.                                                               |
| Continuation Token | string          | No       | Token from a previous run's Next Continuation Token, to fetch the next page. Leave empty for the first page.                                          |

**Outputs**

| Field                   | Type          | Description                                                                   |
| ----------------------- | ------------- | ----------------------------------------------------------------------------- |
| Objects                 | object\_array | Blobs found in the container.                                                 |
| Is Truncated            | boolean       | Whether more blobs exist beyond the returned ones.                            |
| Key Count               | integer       | Number of blobs returned.                                                     |
| Next Continuation Token | string        | Pass this back as Continuation Token to fetch the next page. Empty when done. |

#### Upload File

Upload a file to the connected Azure Blob Storage container.

**Inputs**

| Field            | Type            | Required | Description                                                                                                                                           |
| ---------------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Container        | select (string) | No       | The container to use. Leave empty for a container-scoped connection, which is fixed to a single container. Options load from the selected connection. |
| Blob Path        | string          | Yes      | Destination path for the blob within the container.                                                                                                   |
| File URL         | string          | Yes      | Public URL of the file to download and store in the blob.                                                                                             |
| Replace Existing | boolean         | No       | If on, overwrite an existing blob at this path. If off, the action fails when a blob already exists there. Default: false.                            |

**Outputs**

| Field | Type   | Description                    |
| ----- | ------ | ------------------------------ |
| File  | object | Metadata of the uploaded blob. |

#### Delete File

Delete a blob from the connected Azure Blob Storage container.

**Inputs**

| Field     | Type            | Required | Description                                                                                                                                           |
| --------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Container | select (string) | No       | The container to use. Leave empty for a container-scoped connection, which is fixed to a single container. Options load from the selected connection. |
| Blob Path | string          | Yes      | Path of the blob to delete within the container.                                                                                                      |

**Outputs**

| Field     | Type    | Description                          |
| --------- | ------- | ------------------------------------ |
| Deleted   | boolean | Whether the blob was deleted.        |
| Blob Path | string  | Path of the deleted blob.            |
| Container | string  | Container the blob was deleted from. |

### Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/azure-blob-storage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
