> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure Blob stream is already closed

> Resolve the Azure Blob Storage error returned when your app registrations are missing required roles or permissions.

## Error message

```text wrap theme={null}
Azure Blob: Stream is already closed
```

This error can appear when using any component that reads from or writes to Azure Blob Storage.

### Explanation

The permissions for accessing your Azure storage accounts and blobs aren't defined correctly.

### Potential causes

The Azure app registrations for Maia are missing roles or permissions required to access your storage accounts and blobs.

***

## Resolve the error

1. Make sure that all your Azure app registrations for Maia have all the [required roles and permissions for cloud storage](https://docs.maia.ai/docs/guides/cloud-credentials.md#roles-and-permissions-for-cloud-storage).
2. Re-run the pipeline.
3. If you still need help, [contact Maia Support](https://support.matillion.com/s/) and include the items listed below.

   * The full error text.
   * The root pipeline execution ID.
   * The Maia runner ID and time of failure (UTC).

### Prevent future errors

To prevent this error occurring again, [assign the required roles and permissions](https://docs.maia.ai/docs/guides/cloud-credentials.md#roles-and-permissions-for-cloud-storage) to every Azure app registration for Maia before you run pipelines that use Azure Blob Storage.


## Related topics

- [Azure Storage authorization permission mismatch](https://docs.maia.ai/docs/errors/azure-storage-authorization-permission-mismatch.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.