Skip to content

Configuring Azure Blob Storage

Configuring an Azure Blob Storage container for use with LoonFS.

Create a container in your storage account, and leave anonymous access disabled.

LoonFS authenticates to Azure Blob Storage with one of the storage account’s two access keys. The key allows every operation on every container in the storage account, so use a storage account that only LoonFS uses.

Commands
az storage account keys list \
--account-name {storage_account} \
--query "[0].value" -o tsv

(A storage account has two keys so that you can regenerate one while the other stays in use. After you regenerate the key that LoonFS uses, update the profile with loonfs profile update abs production --account-key {new_account_key}.)

Commands
loonfs --no-input profile create abs production \
--account-name {storage_account} \
--container {container_name} \
--account-key {account_key}
loonfs profile use production

Optional flags: --key-prefix to scope LoonFS within the container, and --endpoint-url when the account isn’t at https://{storage_account}.blob.core.windows.net, for example a sovereign cloud (https://{storage_account}.blob.core.usgovcloudapi.net) or a local Azurite emulator (http://127.0.0.1:10000/devstoreaccount1). An endpoint on an Azure domain must use https.

On Azure Blob Storage, uploads and downloads go through the LoonFS server. LoonFS doesn’t offer direct transfers on Azure, because a shared access signature can’t require the client to send a checksum with the bytes, and LoonFS verifies the checksum of every object it stores. The server accepts 256 MiB in one proxied transfer by default, so raise that limit if your files are larger (see Uploads & downloads).

LoonFS sends a CRC-64/NVME checksum with every write, and Azure verifies it before storing the blob. LoonFS also records the whole blob’s checksum in the blob’s metadata as crc64nvme.

Commands
loonfs maintenance store probe