Pular para o conteúdo principal

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:

    Casdoor fieldAzure / meaningObrigatório
    Client IDAccountNameSim
    Client secretAccountKeySim
    EndpointContainerUrlSim
    Endpoint (Intranet)PrivateEndpointNão
    BucketContainerNameSim
    Path prefixPrefixo do caminhoNão
    DomainCustom domain (e.g. CDN)Não
  4. Save the provider.

    Azure Blob provider in Casdoor

See also​