The Azure configuration values are evaluated in the following order of precedence:
Option. See the Azure-specific sections of Chapter 11, MySQL Shell Utilities for the applicable options.
Environment variable. See Environment Variables.
-
Configuration file. See Configuration Files.
For more detailed information on Microsoft Azure CLI configuration, see the Azure CLI documentation.
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.
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.
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
andkey
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.