使用 Azure 创建 Redis 实例以及 Redis 配置 JSON 文件抛出错误
Create Redis instance with Azure along with Redis Configuration JSON file throwing error
我目前正在尝试使用典型示例通过 cli 为 azure 创建一个 redis 缓存
az redis create --location westus2 --name MyRedisCache --resource-group MyResourceGroup --sku Basic --vm-size c0
但是,我想做的是使用 ----redis-configuration 附加组件告诉 redis 我不想通过 "requirepass" 处理安全问题:" 属性
无论我如何尝试添加此 属性,我都会收到错误消息。
有没有人成功使用 --redis-configuration 传递额外的部署要求?
考虑到 Azure Redis
是一项完全托管的服务,Microsoft 代表客户创建和管理 Redis 实例(更新、自动故障转移等),而不是所有配置设置(如 requirepass
) 暴露给用户。
查看 creating an Azure Redis instance
的 REST API 文档,一些可以更改的配置设置是:
rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
etc.
我目前正在尝试使用典型示例通过 cli 为 azure 创建一个 redis 缓存
az redis create --location westus2 --name MyRedisCache --resource-group MyResourceGroup --sku Basic --vm-size c0
但是,我想做的是使用 ----redis-configuration 附加组件告诉 redis 我不想通过 "requirepass" 处理安全问题:" 属性
无论我如何尝试添加此 属性,我都会收到错误消息。
有没有人成功使用 --redis-configuration 传递额外的部署要求?
考虑到 Azure Redis
是一项完全托管的服务,Microsoft 代表客户创建和管理 Redis 实例(更新、自动故障转移等),而不是所有配置设置(如 requirepass
) 暴露给用户。
查看 creating an Azure Redis instance
的 REST API 文档,一些可以更改的配置设置是:
rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.