4.7.3 Azure Blob Storage

The Azure configuration values are evaluated in the following order of precedence:

Note

If you intend to use SAS Tokens, they must provide the following:

  • Access to the target container.

  • Read, Write, and List permissions for dump and export operations.

  • Read and List permissions for load and import operations.

Environment Variables

Azure connection settings can be read from the following environment variables:

  • AZURE_STORAGE_ACCOUNT: The default storage account name.

  • AZURE_STORAGE_KEY: The default storage key.

  • AZURE_STORAGE_CONNECTION_STRING: The default connection string. If this is defined, AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY are ignored.

  • AZURE_STORAGE_SAS_TOKEN: The default SAS token.

If an SAS token is defined, it is used for the authentication, any defined account key is ignored.

Configuration Files

If you use the Azure config file, you must add one or more of the following parameters to the [storage] section of the file:

  • connection_string: The default connection string. If this is defined, account and key are ignored.

  • account: The default storage account name.

  • key: The default access key.

  • sas_token: The default SAS token.

If an SAS token is defined, it is used for the authentication, any defined account key is ignored.

For more information, see Microsoft Azure CLI configuration values and environment variables.