Forrest logo
back to the az tool

az-redis:tldr:8c89f

az-redis: Export data stored in a Redis cache.
$ az redis export --container ${container} --file-format ${file-format} --name ${name} --prefix ${prefix} --resource-group ${resource_group}
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool