- Docs
- Guides
Configuring Azure Blob Storage
Configuring an Azure Blob Storage container for use with LoonFS.
1. Create a container
Section titled “1. Create a container”Create a container in your storage account, and leave anonymous access disabled.
2. Get the account key
Section titled “2. Get the account key”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.
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}.)
3. Create the LoonFS profile
Section titled “3. Create the LoonFS profile”loonfs --no-input profile create abs production \ --account-name {storage_account} \ --container {container_name} \ --account-key {account_key}
loonfs profile use productionOptional 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.
4. Verify
Section titled “4. Verify”loonfs maintenance store probe