![Forrest logo](/images/logo.png)
az-redis:tldr:8c89f
The command az redis export
is used in the Azure Command-Line Interface (CLI) to export data from an Azure Redis Cache instance to a storage account.
Here is a breakdown of the command and its parameters:
-
--container ${container}
: Specifies the name of the container in the storage account where the exported files will be stored. You need to replace${container}
with the actual name of the container. -
--file-format ${file-format}
: Specifies the format of the exported files. The supported formats are "rdb" (Redis RDB file format) and "json" (JSON file format). Replace${file-format}
with either "rdb" or "json". -
--name ${name}
: Specifies the name of the Redis Cache instance from which you want to export data. Replace${name}
with the actual name of the Redis Cache instance. -
--prefix ${prefix}
: Optional parameter that specifies a prefix to be added to the exported file names. Replace${prefix}
with the desired prefix. -
--resource-group ${resource_group}
: Specifies the name of the resource group where the Redis Cache instance is located. Replace${resource_group}
with the name of the resource group.
To use this command, you need to have the Azure CLI installed and authenticated with your Azure account. Make sure you have the necessary permissions to access the specified Redis Cache instance and storage account.