-
Notifications
You must be signed in to change notification settings - Fork 2
Azure Storage Configuration
James Fantin-Hardesty edited this page Sep 2, 2025
·
4 revisions
You can provide Azure-related settings to Cloudfuse (blob or datalake) in two ways (listed in order of precedence):
- Configuration file
- Environment variables
Note: Environment variables are intended primarily for authentication. Use the YAML configuration file for persistent settings.
Create a YAML config and pass it to the mount command:
cloudfuse mount ./mount --config-file=./config.yaml
Helpful references in this repository:
- Base configuration with all options: https://github.com/Seagate/cloudfuse/blob/main/setup/baseConfig.yaml
- Example file-cache config: https://github.com/Seagate/cloudfuse/blob/main/sampleFileCacheConfig.yaml
- Example streaming config: https://github.com/Seagate/cloudfuse/blob/main/sampleStreamingConfig.yaml
Example azstorage section (fill with your values):
azstorage:
# Required
account-name: my-account
container: my-container
type: block # block | adls (default: block)
endpoint: https://my-account.blob.core.windows.net
# Optional (authentication; values here take precedence over env/CLI)
mode: key # key | sas | spn | msi
account-key: <storage account key> # for mode: key
sas: <storage account sas token> # for mode: sas
# Service Principal (for mode: spn)
tenantid: <tenant id>
clientid: <client id>
clientsecret: <client secret>
# Managed Identity (for mode: msi) — provide one or more of:
appid: <client id for MSI>
objid: <object id for MSI>
resid: <resource id for MSI>
# Optional
oauth-token-path: <path to file containing the OAuth token>Cloudfuse supports a set of Azure environment variables useful for authentication and selecting the target container. These are handy when you prefer not to store secrets in a config file:
- General options
-
AZURE_STORAGE_ACCOUNT— storage account name -
AZURE_STORAGE_ACCOUNT_TYPE— 'block' or 'adls' -
AZURE_STORAGE_ACCOUNT_CONTAINER— container name to mount -
AZURE_STORAGE_BLOB_ENDPOINT— blob endpoint (defaults to *.blob.core.windows.net) -
AZURE_STORAGE_AUTH_TYPE— auth type override (Key, SAS, MSI, SPN; case-insensitive)
-
- Account key auth
AZURE_STORAGE_ACCESS_KEY
- SAS token auth
AZURE_STORAGE_SAS_TOKEN
- Managed Identity (MSI)
AZURE_STORAGE_IDENTITY_CLIENT_IDAZURE_STORAGE_IDENTITY_OBJECT_IDAZURE_STORAGE_IDENTITY_RESOURCE_ID-
MSI_ENDPOINT— custom MSI endpoint (usesMSI_SECRETas Secret header) -
MSI_SECRET— secret for custom MSI endpoint
- Service Principal (SPN)
AZURE_STORAGE_SPN_CLIENT_IDAZURE_STORAGE_SPN_TENANT_IDAZURE_STORAGE_AAD_ENDPOINTAZURE_STORAGE_SPN_CLIENT_SECRET-
AZURE_STORAGE_AUTH_RESOURCE— scope used when requesting a token
- Proxy
-
http_proxy,https_proxy
-