跳到主内容

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​


Find the values in Azure​

ValueWhere to find it
AccountNameThe name of the storage account
AccountKeyThe storage account, Access keys
ContainerUrlThe properties of the container
ContainerNameThe name of the container, for example default
PrivateEndpointOptional. A private endpoint of the account
DomainOptional. A custom domain, such as one of Azure CDN

Access keys of the storage account

URL of the container

Name of the container

Azure CDN domain

Add the provider in Casdoor​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.

  2. Set Category to Storage and Type to Azure Blob.

    Azure Blob type selection

  3. Fill in the fields:

    字段Azure 对应项 / 含义必需的
    Client IDAccountName是
    Client secretAccountKey是
    EndpointContainerUrl是
    Endpoint (Intranet)PrivateEndpoint不
    BucketContainerName是
    Path prefix路径前缀不
    Domain自定义域名(例如 CDN)不
  4. 保存提供商.

    Azure Blob provider in Casdoor

See also​