2022-10-05 23:15:01 +01:00
|
|
|
# az redis
|
|
|
|
|
|
|
|
> Manage Redis caches.
|
2023-10-15 08:42:29 +01:00
|
|
|
> Part of `azure-cli` (also known as `az`).
|
|
|
|
> More information: <https://learn.microsoft.com/cli/azure/redis>.
|
2022-10-05 23:15:01 +01:00
|
|
|
|
|
|
|
- Create a new Redis cache instance:
|
|
|
|
|
|
|
|
`az redis create --location {{location}} --name {{name}} --resource-group {{resource_group}} --sku {{Basic|Premium|Standard}} --vm-size {{c0|c1|c2|c3|c4|c5|c6|p1|p2|p3|p4|p5}}`
|
|
|
|
|
|
|
|
- Update a Redis cache:
|
|
|
|
|
|
|
|
`az redis update --name {{name}} --resource-group {{resource_group}} --sku {{Basic|Premium|Standard}} --vm-size {{c0|c1|c2|c3|c4|c5|c6|p1|p2|p3|p4|p5}}`
|
|
|
|
|
|
|
|
- Export data stored in a Redis cache:
|
|
|
|
|
|
|
|
`az redis export --container {{container}} --file-format {{file-format}} --name {{name}} --prefix {{prefix}} --resource-group {{resource_group}}`
|
|
|
|
|
|
|
|
- Delete a Redis cache:
|
|
|
|
|
|
|
|
`az redis delete --name {{name}} --resource-group {{resource_group}} --yes`
|