[英]Change multiple parameters for Azure MySQL Flexible Server programmatically in bulk
I can change all parameters manually by going to the following page and change them there我可以通过转到下一页并在那里更改它们来手动更改所有参数
Or I can use Azure CLI to change single param:或者我可以使用Azure CLI来更改单个参数:
az mysql flexible-server parameter set
--server-name blabla
--name param_name
--value param_value
But the problem is that there quite a lot of params I would like to change.但问题是我想更改很多参数。 Is there any way I can change multiple params at once?有什么办法可以一次更改多个参数吗?
Well according these MSDOC there are only two ways of updating the server parameters in azure.那么根据这些MSDOC ,只有两种方法可以更新 azure 中的服务器参数。
Which are either through portal or through cli.哪些是通过门户网站或通过 cli。 Now you can update multiple server parameter at once but you will have to enter them manually in the portal.现在您可以一次更新多个服务器参数,但您必须在门户中手动输入它们。
Now you through cli the case isn't any different where you can run az mysql flexible-server parameter set
but it doesn't accept multiple key value pair of the configuration.现在您通过 cli 的情况没有任何不同,您可以运行az mysql flexible-server parameter set
但它不接受配置的多个键值对。
Now the last and only option which remains where you can create a custom script in your desired language where you can generate the new command for each server parameter and run them one by one.现在剩下的最后一个也是唯一的选项,您可以在其中使用所需的语言创建自定义脚本,您可以在其中为每个服务器参数生成新命令并一个一个地运行它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.