azure - 使用 Azure 创建 Redis 实例以及 Redis 配置 JSON 文件抛出错误
问题描述
我目前正在尝试使用典型示例通过 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
)都向用户公开。
查看 REST API 文档creating an Azure Redis instance
,可以更改的配置设置很少:
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 等。
推荐阅读
- python - Python - 为什么在导入后执行代码之前和之后?
- java - 如何在每个发现的设备后获取列表?
- java - 如何编写一个返回过去月份和年份的第一天和最后一天的方法?
- html - HTML中提交按钮的语言
- html - 如何在我的html代码中将光标更改为指针
- postman - 无法通过邮递员或 python 条带客户端更新 Stripe API 中的嵌套对象
- python - 重置/重新初始化云函数的全局变量
- virtual-machine - VMware 虚拟机是否使用主机系统的硬件和其他资源?
- asp.net - 如何从 MVC 控件获取数据到 CSHTML
- c# - 运行默认 Asp.Net Core Visual Studio 2019 时的 ERR_CONNECTION_RESET