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