Store files in Azure Blob Storage
This guide explains how to store the uploaded files of Casdoor, such as avatars, in Azure Blob Storage.
Learning outcomes
- Find the values of your storage account.
- Add Azure Blob as a storage provider in Casdoor.
What you need
- An Azure storage account with a container
- Administrator access to the Casdoor admin console
Find the values in Azure
| Value | Where to find it |
|---|---|
| AccountName | The name of the storage account |
| AccountKey | The storage account, Access keys |
| ContainerUrl | The properties of the container |
| ContainerName | The name of the container, for example default |
| PrivateEndpoint | Optional. A private endpoint of the account |
| Domain | Optional. A custom domain, such as one of Azure CDN |




Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Storageand Type toAzure Blob.
-
Fill in the fields:
Casdoor field Azure / meaning Obligatoire Client ID AccountName Oui Client secret AccountKey Oui Endpoint ContainerUrl Oui Endpoint (Intranet) PrivateEndpoint Non Bucket ContainerName Oui Path prefix Préfixe de chemin Non Domain Custom domain (e.g. CDN) Non -
Save the provider.
