# Azure Blob Storage

Keep your Alter Ego memory in a folder of an Azure Blob Storage container.

There is no sign-in screen. After you pick Azure Blob Storage, Alter Ego asks for one of two kinds of access.

- **A container SAS URL.** Create one for the container with read, write, delete and list permissions.
- **A service principal.** Account URL, container, tenant ID, application ID and client secret, with the role Storage Blob Data Contributor on the container.

You also choose the folder, `Alter Ego` by default, or empty for the top of the container. Use the folder another Ego product already uses to share one memory.

## What happens to the details

Alter Ego checks the details once by writing and removing a small test file. They are kept sealed in the encrypted sign-in store and are never shown again. Addresses you type are only fetched when they resolve to public addresses over https.

Role-based access through a managed identity is not offered, the service principal is the way to use an Entra identity.

## Disconnect

Delete or let expire the SAS, or remove the client secret of the service principal. Alter Ego can then no longer reach your storage. See [Disconnect and revoke](/docs/disconnect/).
