2017-07-25 22:18:13 +08:00
---
title: "Microsoft Azure Blob Storage"
description: "Rclone docs for Microsoft Azure Blob Storage"
2022-11-18 01:56:24 +08:00
versionIntroduced: "v1.38"
2017-07-25 22:18:13 +08:00
---
2021-07-21 02:45:41 +08:00
# {{< icon "fab fa-windows" >}} Microsoft Azure Blob Storage
2017-07-25 22:18:13 +08:00
Paths are specified as `remote:container` (or `remote:` for the `lsd`
2020-10-14 05:49:58 +08:00
command.) You may put subdirectories in too, e.g.
2017-07-25 22:18:13 +08:00
`remote:container/path/to/dir` .
2021-10-14 21:40:18 +08:00
## Configuration
2017-07-25 22:18:13 +08:00
Here is an example of making a Microsoft Azure Blob Storage
configuration. For a remote called `remote` . First run:
rclone config
This will guide you through an interactive setup process:
```
2021-11-02 04:34:46 +08:00
No remotes found, make a new one?
2017-07-25 22:18:13 +08:00
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
2019-08-26 17:47:17 +08:00
[snip]
XX / Microsoft Azure Blob Storage
2017-07-25 22:18:13 +08:00
\ "azureblob"
2019-08-26 17:47:17 +08:00
[snip]
2017-07-25 22:18:13 +08:00
Storage> azureblob
Storage Account Name
account> account_name
Storage Account Key
key> base64encodedkey==
Endpoint for the service - leave blank normally.
endpoint>
Remote config
--------------------
[remote]
account = account_name
key = base64encodedkey==
endpoint =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
```
See all containers
rclone lsd remote:
Make a new container
rclone mkdir remote:container
List the contents of a container
rclone ls remote:container
Sync `/home/local/directory` to the remote container, deleting any excess
files in the container.
2023-01-21 04:47:36 +08:00
rclone sync --interactive /home/local/directory remote:container
2017-07-25 22:18:13 +08:00
2021-10-14 21:40:18 +08:00
### --fast-list
2017-07-25 22:18:13 +08:00
This remote supports `--fast-list` which allows you to use fewer
transactions in exchange for more memory. See the [rclone
docs](/docs/#fast-list) for more details.
2023-11-18 20:36:46 +08:00
### Modification times and hashes
2017-07-25 22:18:13 +08:00
2023-11-18 20:36:46 +08:00
The modification time is stored as metadata on the object with the
`mtime` key. It is stored using RFC3339 Format time with nanosecond
2017-07-25 22:18:13 +08:00
precision. The metadata is supplied during directory listings so
2022-12-15 23:10:53 +08:00
there is no performance overhead to using it.
If you wish to use the Azure standard `LastModified` time stored on
the object as the modified time, then use the `--use-server-modtime`
flag. Note that rclone can't set `LastModified` , so using the
`--update` flag when syncing is recommended if using
`--use-server-modtime` .
2017-07-25 22:18:13 +08:00
2023-11-18 20:36:46 +08:00
MD5 hashes are stored with blobs. However blobs that were uploaded in
chunks only have an MD5 if the source remote was capable of MD5
hashes, e.g. the local disk.
2021-11-18 23:37:00 +08:00
### Performance
When uploading large files, increasing the value of
`--azureblob-upload-concurrency` will increase performance at the cost
of using more memory. The default of 16 is set quite conservatively to
use less memory. It maybe be necessary raise it to 64 or higher to
fully utilize a 1 GBit/s link with a single file transfer.
2019-09-21 19:36:16 +08:00
### Restricted filename characters
In addition to the [default restricted characters set ](/overview/#restricted-characters )
the following characters are also replaced:
| Character | Value | Replacement |
| --------- |:-----:|:-----------:|
| / | 0x2F | / |
| \ | 0x5C | \ |
File names can also not end with the following characters.
2020-05-26 07:30:30 +08:00
These only get replaced if they are the last character in the name:
2019-09-21 19:36:16 +08:00
| Character | Value | Replacement |
| --------- |:-----:|:-----------:|
| . | 0x2E | . |
Invalid UTF-8 bytes will also be [replaced ](/overview/#invalid-utf8 ),
as they can't be used in JSON strings.
2022-11-30 19:45:34 +08:00
### Authentication {#authentication}
2018-07-05 16:39:06 +08:00
2022-11-30 19:45:34 +08:00
There are a number of ways of supplying credentials for Azure Blob
Storage. Rclone tries them in the order of the sections below.
2018-07-05 16:39:06 +08:00
2022-11-30 19:45:34 +08:00
#### Env Auth
If the `env_auth` config parameter is `true` then rclone will pull
credentials from the environment or runtime.
It tries these authentication methods in this order:
1. Environment Variables
2. Managed Service Identity Credentials
3. Azure CLI credentials (as used by the az tool)
These are described in the following sections
##### Env Auth: 1. Environment Variables
If `env_auth` is set and environment variables are present rclone
authenticates a service principal with a secret or certificate, or a
user with a password, depending on which environment variable are set.
It reads configuration from these variables, in the following order:
1. Service principal with client secret
- `AZURE_TENANT_ID` : ID of the service principal's tenant. Also called its "directory" ID.
- `AZURE_CLIENT_ID` : the service principal's client ID
- `AZURE_CLIENT_SECRET` : one of the service principal's client secrets
2. Service principal with certificate
- `AZURE_TENANT_ID` : ID of the service principal's tenant. Also called its "directory" ID.
- `AZURE_CLIENT_ID` : the service principal's client ID
- `AZURE_CLIENT_CERTIFICATE_PATH` : path to a PEM or PKCS12 certificate file including the private key.
- `AZURE_CLIENT_CERTIFICATE_PASSWORD` : (optional) password for the certificate file.
- `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN` : (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
3. User with username and password
- `AZURE_TENANT_ID` : (optional) tenant to authenticate in. Defaults to "organizations".
- `AZURE_CLIENT_ID` : client ID of the application the user will authenticate to
- `AZURE_USERNAME` : a username (usually an email address)
- `AZURE_PASSWORD` : the user's password
2023-05-13 15:26:14 +08:00
4. Workload Identity
- `AZURE_TENANT_ID` : Tenant to authenticate in.
- `AZURE_CLIENT_ID` : Client ID of the application the user will authenticate to.
- `AZURE_FEDERATED_TOKEN_FILE` : Path to projected service account token file.
- `AZURE_AUTHORITY_HOST` : Authority of an Azure Active Directory endpoint (default: login.microsoftonline.com).
2022-11-30 19:45:34 +08:00
##### Env Auth: 2. Managed Service Identity Credentials
When using Managed Service Identity if the VM(SS) on which this
program is running has a system-assigned identity, it will be used by
default. If the resource has no system-assigned but exactly one
user-assigned identity, the user-assigned identity will be used by
default.
If the resource has multiple user-assigned identities you will need to
unset `env_auth` and set `use_msi` instead. See the [`use_msi`
section](#use_msi).
##### Env Auth: 3. Azure CLI credentials (as used by the az tool)
Credentials created with the `az` tool can be picked up using `env_auth` .
For example if you were to login with a service principal like this:
az login --service-principal -u XXX -p XXX --tenant XXX
Then you could access rclone resources like this:
rclone lsf :azureblob,env_auth,account=ACCOUNT:CONTAINER
Or
2023-04-18 19:48:55 +08:00
rclone lsf --azureblob-env-auth --azureblob-account=ACCOUNT :azureblob:CONTAINER
2022-11-30 19:45:34 +08:00
Which is analogous to using the `az` tool:
az storage blob list --container-name CONTAINER --account-name ACCOUNT --auth-mode login
#### Account and Shared Key
2018-07-05 16:39:06 +08:00
2020-03-05 22:49:09 +08:00
This is the most straight forward and least flexible way. Just fill
in the `account` and `key` lines and leave the rest blank.
2018-07-05 16:39:06 +08:00
#### SAS URL
2020-03-05 22:49:09 +08:00
This can be an account level SAS URL or container level SAS URL.
2018-07-05 16:39:06 +08:00
2022-11-30 19:45:34 +08:00
To use it leave `account` and `key` blank and fill in `sas_url` .
2018-07-05 16:39:06 +08:00
2020-03-05 22:49:09 +08:00
An account level SAS URL or container level SAS URL can be obtained
from the Azure portal or the Azure Storage Explorer. To get a
container level SAS URL right click on a container in the Azure Blob
explorer in the Azure portal.
2018-07-05 16:39:06 +08:00
2020-03-05 22:49:09 +08:00
If you use a container level SAS URL, rclone operations are permitted
2020-10-14 05:49:58 +08:00
only on a particular container, e.g.
2018-07-13 23:21:49 +08:00
2020-03-05 22:49:09 +08:00
rclone ls azureblob:container
2018-07-05 16:39:06 +08:00
2020-03-05 22:49:09 +08:00
You can also list the single container from the root. This will only
show the container specified by the SAS URL.
2018-07-05 16:39:06 +08:00
2020-03-05 22:49:09 +08:00
$ rclone lsd azureblob:
container/
Note that you can't see or access any other containers - this will
fail
2018-07-05 16:39:06 +08:00
rclone ls azureblob:othercontainer
2020-03-05 22:49:09 +08:00
Container level SAS URLs are useful for temporarily allowing third
parties access to a single container or putting credentials into an
untrusted environment such as a CI build server.
2018-07-05 16:39:06 +08:00
2022-11-30 19:45:34 +08:00
#### Service principal with client secret
If these variables are set, rclone will authenticate with a service principal with a client secret.
- `tenant` : ID of the service principal's tenant. Also called its "directory" ID.
- `client_id` : the service principal's client ID
- `client_secret` : one of the service principal's client secrets
The credentials can also be placed in a file using the
`service_principal_file` configuration option.
#### Service principal with certificate
If these variables are set, rclone will authenticate with a service principal with certificate.
- `tenant` : ID of the service principal's tenant. Also called its "directory" ID.
- `client_id` : the service principal's client ID
- `client_certificate_path` : path to a PEM or PKCS12 certificate file including the private key.
- `client_certificate_password` : (optional) password for the certificate file.
- `client_send_certificate_chain` : (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
**NB** `client_certificate_password` must be obscured - see [rclone obscure ](/commands/rclone_obscure/ ).
#### User with username and password
If these variables are set, rclone will authenticate with username and password.
- `tenant` : (optional) tenant to authenticate in. Defaults to "organizations".
- `client_id` : client ID of the application the user will authenticate to
- `username` : a username (usually an email address)
- `password` : the user's password
Microsoft doesn't recommend this kind of authentication, because it's
less secure than other authentication flows. This method is not
interactive, so it isn't compatible with any form of multi-factor
authentication, and the application must already have user or admin
consent. This credential can only authenticate work and school
accounts; it can't authenticate Microsoft accounts.
**NB** `password` must be obscured - see [rclone obscure ](/commands/rclone_obscure/ ).
#### Managed Service Identity Credentials {#use_msi}
If `use_msi` is set then managed service identity credentials are
used. This authentication only works when running in an Azure service.
`env_auth` needs to be unset to use this.
However if you have multiple user identities to choose from these must
be explicitly specified using exactly one of the `msi_object_id` ,
`msi_client_id` , or `msi_mi_res_id` parameters.
If none of `msi_object_id` , `msi_client_id` , or `msi_mi_res_id` is
set, this is is equivalent to using `env_auth` .
2020-05-22 19:22:52 +08:00
{{< rem autogenerated options start " - DO NOT EDIT - instead edit fs . RegInfo in backend / azureblob / azureblob . go then run make backenddocs " > }}
2021-11-01 23:42:05 +08:00
### Standard options
2018-10-02 03:48:54 +08:00
2022-07-10 01:08:20 +08:00
Here are the Standard options specific to azureblob (Microsoft Azure Blob Storage).
2018-10-02 03:48:54 +08:00
#### --azureblob-account
2022-11-30 19:45:34 +08:00
Azure Storage Account Name.
Set this to the Azure Storage Account Name in use.
Leave blank to use SAS URL or Emulator, otherwise it needs to be set.
If this is blank and if env_auth is set it will be read from the
environment variable `AZURE_STORAGE_ACCOUNT_NAME` if possible.
2021-11-01 23:42:05 +08:00
2018-10-02 03:48:54 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2018-10-02 03:48:54 +08:00
- Config: account
- Env Var: RCLONE_AZUREBLOB_ACCOUNT
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2018-10-02 03:48:54 +08:00
2022-11-30 19:45:34 +08:00
#### --azureblob-env-auth
2021-02-02 21:42:35 +08:00
2022-11-30 19:45:34 +08:00
Read credentials from runtime (environment variables, CLI or MSI).
2021-02-02 21:42:35 +08:00
2022-11-30 19:45:34 +08:00
See the [authentication docs ](/azureblob#authentication ) for full info.
2021-02-02 21:42:35 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2022-11-30 19:45:34 +08:00
- Config: env_auth
- Env Var: RCLONE_AZUREBLOB_ENV_AUTH
- Type: bool
- Default: false
2021-02-02 21:42:35 +08:00
2018-10-02 03:48:54 +08:00
#### --azureblob-key
2022-11-30 19:45:34 +08:00
Storage Account Shared Key.
2021-11-01 23:42:05 +08:00
2022-11-30 19:45:34 +08:00
Leave blank to use SAS URL or Emulator.
2018-10-02 03:48:54 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2018-10-02 03:48:54 +08:00
- Config: key
- Env Var: RCLONE_AZUREBLOB_KEY
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2018-10-02 03:48:54 +08:00
#### --azureblob-sas-url
2021-11-01 23:42:05 +08:00
SAS URL for container level access only.
Leave blank if using account/key or Emulator.
2018-10-02 03:48:54 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2018-10-02 03:48:54 +08:00
- Config: sas_url
- Env Var: RCLONE_AZUREBLOB_SAS_URL
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2018-10-02 03:48:54 +08:00
2022-11-30 19:45:34 +08:00
#### --azureblob-tenant
ID of the service principal's tenant. Also called its directory ID.
Set this if using
- Service principal with client secret
- Service principal with certificate
- User with username and password
Properties:
- Config: tenant
- Env Var: RCLONE_AZUREBLOB_TENANT
- Type: string
- Required: false
#### --azureblob-client-id
The ID of the client in use.
Set this if using
- Service principal with client secret
- Service principal with certificate
- User with username and password
Properties:
- Config: client_id
- Env Var: RCLONE_AZUREBLOB_CLIENT_ID
- Type: string
- Required: false
#### --azureblob-client-secret
One of the service principal's client secrets
Set this if using
- Service principal with client secret
Properties:
- Config: client_secret
- Env Var: RCLONE_AZUREBLOB_CLIENT_SECRET
- Type: string
- Required: false
#### --azureblob-client-certificate-path
Path to a PEM or PKCS12 certificate file including the private key.
Set this if using
- Service principal with certificate
Properties:
- Config: client_certificate_path
- Env Var: RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PATH
- Type: string
- Required: false
#### --azureblob-client-certificate-password
Password for the certificate file (optional).
Optionally set this if using
- Service principal with certificate
And the certificate has a password.
**NB** Input to this must be obscured - see [rclone obscure ](/commands/rclone_obscure/ ).
Properties:
- Config: client_certificate_password
- Env Var: RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PASSWORD
- Type: string
- Required: false
### Advanced options
Here are the Advanced options specific to azureblob (Microsoft Azure Blob Storage).
#### --azureblob-client-send-certificate-chain
Send the certificate chain when using certificate auth.
Specifies whether an authentication request will include an x5c header
to support subject name / issuer based authentication. When set to
true, authentication requests include the x5c header.
Optionally set this if using
- Service principal with certificate
Properties:
- Config: client_send_certificate_chain
- Env Var: RCLONE_AZUREBLOB_CLIENT_SEND_CERTIFICATE_CHAIN
- Type: bool
- Default: false
#### --azureblob-username
User name (usually an email address)
Set this if using
- User with username and password
Properties:
- Config: username
- Env Var: RCLONE_AZUREBLOB_USERNAME
- Type: string
- Required: false
#### --azureblob-password
The user's password
Set this if using
- User with username and password
**NB** Input to this must be obscured - see [rclone obscure ](/commands/rclone_obscure/ ).
Properties:
- Config: password
- Env Var: RCLONE_AZUREBLOB_PASSWORD
- Type: string
- Required: false
#### --azureblob-service-principal-file
Path to file containing credentials for use with a service principal.
Leave blank normally. Needed only if you want to use a service principal instead of interactive login.
$ az ad sp create-for-rbac --name "< name > " \
--role "Storage Blob Data Owner" \
--scopes "/subscriptions/< subscription > /resourceGroups/< resource-group > /providers/Microsoft.Storage/storageAccounts/< storage-account > /blobServices/default/containers/< container > " \
> azure-principal.json
See ["Create an Azure service principal" ](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli ) and ["Assign an Azure role for access to blob data" ](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli ) pages for more details.
It may be more convenient to put the credentials directly into the
rclone config file under the `client_id` , `tenant` and `client_secret`
keys instead of setting `service_principal_file` .
Properties:
- Config: service_principal_file
- Env Var: RCLONE_AZUREBLOB_SERVICE_PRINCIPAL_FILE
- Type: string
- Required: false
2021-02-02 21:42:35 +08:00
#### --azureblob-use-msi
2021-11-01 23:42:05 +08:00
Use a managed service identity to authenticate (only works in Azure).
2021-02-02 21:42:35 +08:00
When true, use a [managed service identity ](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/ )
to authenticate to Azure Storage instead of a SAS token or account key.
If the VM(SS) on which this program is running has a system-assigned identity, it will
be used by default. If the resource has no system-assigned but exactly one user-assigned identity,
the user-assigned identity will be used by default. If the resource has multiple user-assigned
identities, the identity to use must be explicitly specified using exactly one of the msi_object_id,
msi_client_id, or msi_mi_res_id parameters.
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: use_msi
- Env Var: RCLONE_AZUREBLOB_USE_MSI
- Type: bool
- Default: false
#### --azureblob-msi-object-id
2021-11-01 23:42:05 +08:00
Object ID of the user-assigned MSI to use, if any.
Leave blank if msi_client_id or msi_mi_res_id specified.
2021-02-02 21:42:35 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: msi_object_id
- Env Var: RCLONE_AZUREBLOB_MSI_OBJECT_ID
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-02-02 21:42:35 +08:00
#### --azureblob-msi-client-id
2021-11-01 23:42:05 +08:00
Object ID of the user-assigned MSI to use, if any.
Leave blank if msi_object_id or msi_mi_res_id specified.
2021-02-02 21:42:35 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: msi_client_id
- Env Var: RCLONE_AZUREBLOB_MSI_CLIENT_ID
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-02-02 21:42:35 +08:00
#### --azureblob-msi-mi-res-id
2021-11-01 23:42:05 +08:00
Azure resource ID of the user-assigned MSI to use, if any.
Leave blank if msi_client_id or msi_object_id specified.
2021-02-02 21:42:35 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: msi_mi_res_id
- Env Var: RCLONE_AZUREBLOB_MSI_MI_RES_ID
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-02-02 21:42:35 +08:00
2022-11-30 19:45:34 +08:00
#### --azureblob-use-emulator
Uses local storage emulator if provided as 'true'.
Leave blank if using real azure storage endpoint.
Properties:
- Config: use_emulator
- Env Var: RCLONE_AZUREBLOB_USE_EMULATOR
- Type: bool
- Default: false
2018-10-02 03:48:54 +08:00
#### --azureblob-endpoint
2021-11-01 23:42:05 +08:00
Endpoint for the service.
2018-10-02 03:48:54 +08:00
Leave blank normally.
2022-03-18 20:29:54 +08:00
Properties:
2018-10-02 03:48:54 +08:00
- Config: endpoint
- Env Var: RCLONE_AZUREBLOB_ENDPOINT
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2018-10-02 03:48:54 +08:00
2021-02-02 21:42:35 +08:00
#### --azureblob-upload-cutoff
2021-11-01 23:42:05 +08:00
Cutoff for switching to chunked upload (< = 256 MiB) (deprecated).
2021-02-02 21:42:35 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: upload_cutoff
- Env Var: RCLONE_AZUREBLOB_UPLOAD_CUTOFF
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-02-02 21:42:35 +08:00
2018-10-02 03:48:54 +08:00
#### --azureblob-chunk-size
2022-03-18 20:29:54 +08:00
Upload chunk size.
2018-10-02 03:48:54 +08:00
Note that this is stored in memory and there may be up to
2022-03-18 20:29:54 +08:00
"--transfers" * "--azureblob-upload-concurrency" chunks stored at once
in memory.
Properties:
2018-10-02 03:48:54 +08:00
- Config: chunk_size
- Env Var: RCLONE_AZUREBLOB_CHUNK_SIZE
- Type: SizeSuffix
2021-07-21 02:45:41 +08:00
- Default: 4Mi
2018-10-02 03:48:54 +08:00
2022-03-18 20:29:54 +08:00
#### --azureblob-upload-concurrency
Concurrency for multipart uploads.
This is the number of chunks of the same file that are uploaded
concurrently.
If you are uploading small numbers of large files over high-speed
links and these uploads do not fully utilize your bandwidth, then
increasing this may help to speed up the transfers.
In tests, upload speed increases almost linearly with upload
concurrency. For example to fill a gigabit pipe it may be necessary to
raise this to 64. Note that this will use more memory.
Note that chunks are stored in memory and there may be up to
"--transfers" * "--azureblob-upload-concurrency" chunks stored at once
in memory.
Properties:
- Config: upload_concurrency
- Env Var: RCLONE_AZUREBLOB_UPLOAD_CONCURRENCY
- Type: int
- Default: 16
2018-10-02 03:48:54 +08:00
#### --azureblob-list-chunk
Size of blob list.
This sets the number of blobs requested in each listing chunk. Default
is the maximum, 5000. "List blobs" requests are permitted 2 minutes
per megabyte to complete. If an operation is taking longer than 2
minutes per megabyte on average, it will time out (
[source ](https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations#exceptions-to-default-timeout-interval )
). This can be used to limit the number of blobs items to return, to
avoid the time out.
2022-03-18 20:29:54 +08:00
Properties:
2018-10-02 03:48:54 +08:00
- Config: list_chunk
- Env Var: RCLONE_AZUREBLOB_LIST_CHUNK
- Type: int
- Default: 5000
#### --azureblob-access-tier
2023-10-18 15:01:11 +08:00
Access tier of blob: hot, cool, cold or archive.
2018-10-02 03:48:54 +08:00
2023-10-18 15:01:11 +08:00
Archived blobs can be restored by setting access tier to hot, cool or
cold. Leave blank if you intend to use default access tier, which is
2018-10-02 03:48:54 +08:00
set at account level
If there is no "access tier" specified, rclone doesn't apply any tier.
rclone performs "Set Tier" operation on blobs while uploading, if objects
are not modified, specifying "access tier" to new one will have no effect.
If blobs are in "archive tier" at remote, trying to perform data transfer
operations from remote will not be allowed. User should first restore by
2023-10-18 15:01:11 +08:00
tiering blob to "Hot", "Cool" or "Cold".
2018-10-02 03:48:54 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2018-10-02 03:48:54 +08:00
- Config: access_tier
- Env Var: RCLONE_AZUREBLOB_ACCESS_TIER
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-02-02 21:42:35 +08:00
#### --azureblob-archive-tier-delete
Delete archive tier blobs before overwriting.
Archive tier blobs cannot be updated. So without this flag, if you
attempt to update an archive tier blob, then rclone will produce the
error:
can't update archive tier blob without --azureblob-archive-tier-delete
With this flag set then before rclone attempts to overwrite an archive
tier blob, it will delete the existing blob before uploading its
replacement. This has the potential for data loss if the upload fails
(unlike updating a normal blob) and also may cost more since deleting
archive tier blobs early may be chargable.
2022-03-18 20:29:54 +08:00
Properties:
2021-02-02 21:42:35 +08:00
- Config: archive_tier_delete
- Env Var: RCLONE_AZUREBLOB_ARCHIVE_TIER_DELETE
- Type: bool
- Default: false
2018-10-02 03:48:54 +08:00
2020-05-22 19:22:52 +08:00
#### --azureblob-disable-checksum
Don't store MD5 checksum with object metadata.
Normally rclone will calculate the MD5 checksum of the input before
uploading it so it can add it to metadata on the object. This is great
for data integrity checking but can cause long delays for large files
to start uploading.
2022-03-18 20:29:54 +08:00
Properties:
2020-05-22 19:22:52 +08:00
- Config: disable_checksum
- Env Var: RCLONE_AZUREBLOB_DISABLE_CHECKSUM
- Type: bool
- Default: false
#### --azureblob-memory-pool-flush-time
2023-09-11 22:59:44 +08:00
How often internal memory buffer pools will be flushed. (no longer used)
2020-05-22 19:22:52 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2020-05-22 19:22:52 +08:00
- Config: memory_pool_flush_time
- Env Var: RCLONE_AZUREBLOB_MEMORY_POOL_FLUSH_TIME
- Type: Duration
- Default: 1m0s
#### --azureblob-memory-pool-use-mmap
2023-09-11 22:59:44 +08:00
Whether to use mmap buffers in internal memory pool. (no longer used)
2020-05-22 19:22:52 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2020-05-22 19:22:52 +08:00
- Config: memory_pool_use_mmap
- Env Var: RCLONE_AZUREBLOB_MEMORY_POOL_USE_MMAP
- Type: bool
- Default: false
2020-02-01 18:31:42 +08:00
#### --azureblob-encoding
2022-03-18 20:29:54 +08:00
The encoding for the backend.
2020-02-01 18:31:42 +08:00
2021-11-01 23:42:05 +08:00
See the [encoding section in the overview ](/overview/#encoding ) for more info.
2020-02-01 18:31:42 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2020-02-01 18:31:42 +08:00
- Config: encoding
- Env Var: RCLONE_AZUREBLOB_ENCODING
2023-11-26 23:59:12 +08:00
- Type: Encoding
2020-02-01 18:31:42 +08:00
- Default: Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8
2021-04-01 02:12:08 +08:00
#### --azureblob-public-access
2021-11-01 23:42:05 +08:00
Public access level of a container: blob or container.
2021-04-01 02:12:08 +08:00
2022-03-18 20:29:54 +08:00
Properties:
2021-04-01 02:12:08 +08:00
- Config: public_access
- Env Var: RCLONE_AZUREBLOB_PUBLIC_ACCESS
- Type: string
2022-03-18 20:29:54 +08:00
- Required: false
2021-04-01 02:12:08 +08:00
- Examples:
- ""
2021-11-01 23:42:05 +08:00
- The container and its blobs can be accessed only with an authorized request.
- It's a default value.
2021-04-01 02:12:08 +08:00
- "blob"
- Blob data within this container can be read via anonymous request.
- "container"
- Allow full public read access for container and blob data.
2023-06-30 21:11:17 +08:00
#### --azureblob-directory-markers
Upload an empty object with a trailing slash when a new directory is created
Empty folders are unsupported for bucket based remotes, this option
creates an empty object ending with "/", to persist the folder.
This object also has the metadata "hdi_isfolder = true" to conform to
the Microsoft standard.
Properties:
- Config: directory_markers
- Env Var: RCLONE_AZUREBLOB_DIRECTORY_MARKERS
- Type: bool
- Default: false
2022-11-30 19:45:34 +08:00
#### --azureblob-no-check-container
If set, don't attempt to check the container exists or create it.
This can be useful when trying to minimise the number of transactions
rclone does if you know the container exists already.
Properties:
- Config: no_check_container
- Env Var: RCLONE_AZUREBLOB_NO_CHECK_CONTAINER
- Type: bool
- Default: false
2021-11-01 23:42:05 +08:00
#### --azureblob-no-head-object
If set, do not do HEAD before GET when getting objects.
2022-03-18 20:29:54 +08:00
Properties:
2021-11-01 23:42:05 +08:00
- Config: no_head_object
- Env Var: RCLONE_AZUREBLOB_NO_HEAD_OBJECT
- Type: bool
- Default: false
2020-05-22 19:22:52 +08:00
{{< rem autogenerated options stop > }}
2021-10-14 21:40:18 +08:00
2022-11-14 17:51:49 +08:00
### Custom upload headers
You can set custom upload headers with the `--header-upload` flag.
- Cache-Control
- Content-Disposition
- Content-Encoding
- Content-Language
- Content-Type
Eg `--header-upload "Content-Type: text/potato"`
2021-10-14 21:40:18 +08:00
## Limitations
2017-07-25 22:18:13 +08:00
MD5 sums are only uploaded with chunked files if the source has an MD5
sum. This will always be the case for a local to azure copy.
2019-06-27 11:46:22 +08:00
2020-11-27 22:08:52 +08:00
`rclone about` is not supported by the Microsoft Azure Blob storage backend. Backends without
this capability cannot determine free space for an rclone mount or
use policy `mfs` (most free space) as a member of an rclone union
remote.
2022-05-14 06:06:45 +08:00
See [List of backends that do not support rclone about ](https://rclone.org/overview/#optional-features ) and [rclone about ](https://rclone.org/commands/rclone_about/ )
2020-11-27 22:08:52 +08:00
2021-10-14 21:40:18 +08:00
## Azure Storage Emulator Support
2022-11-30 19:45:34 +08:00
You can run rclone with the storage emulator (usually _azurite_ ).
2022-07-06 18:54:04 +08:00
2022-11-30 19:45:34 +08:00
To do this, just set up a new remote with `rclone config` following
the instructions in the introduction and set `use_emulator` in the
advanced settings as `true` . You do not need to provide a default
account name nor an account key. But you can override them in the
`account` and `key` options. (Prior to v1.61 they were hard coded to
_azurite_'s `devstoreaccount1` .)
2022-07-06 18:54:04 +08:00
2022-11-30 19:45:34 +08:00
Also, if you want to access a storage emulator instance running on a
different machine, you can override the `endpoint` parameter in the
advanced settings, setting it to
`http(s)://<host>:<port>/devstoreaccount1`
(e.g. `http://10.254.2.5:10000/devstoreaccount1` ).