简体   繁体   English

以编程方式批量更改 Azure MySQL 灵活服务器的多个参数

[英]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.

相关问题 使用 .NET 核心 6 和 Azure SDK 创建 PostgreSQL 灵活服务器时出错 - Error on creation of a PostgreSQL flexible server with .NET core 6, and Azure SDK Gitlab azure cli多行参数 - Gitlab azure cli multiple lines parameters 标识 Azure 专用 DNS Azure 的区域条目 PostgreSQL 灵活服务器的数据库 - Identify Azure Private DNS Zone entry for Azure Database for PostgreSQL flexible server 将带有参数的 MySQL 视图中的活动复制到带有 Azure 数据工厂的 Azure SQL 数据库 - Copy Activity from a MySQL view with parameters to Azure SQL database with Azure Data Factory Azure 函数:是否可以为队列触发器提供多个参数? - Azure functions: is it possible to give multiple parameters to a queue trigger? Azure - 以编程方式安排 Webjob - Azure - Schedule Webjob programmatically Azure devops 发布编辑批量 110 - Azure devops release edit bulk 110 Azure 可管理多个用户帐户的SFTP服务器 - Azure SFTP server with multiple user accounts which could be managed Azure AD从CSV更新批量用户 - Azure AD Updating Bulk users from CSV 如果在 azure 管道问题中使用变量而不是参数 - If with variables not parameters in azure pipeline problem
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM