本文介绍了通过PowerShell将现有操作组附加到新的度量标准警报规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我想创建一个指标警报规则,并将一些现有的操作组附加到该规则。我的powershell代码显示了一些错误,如 " Add-AzMetricAlertRule:无法绑定参数'Action'。无法转换   " Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup"类型的值 " Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup"输入"Microsoft.Azure.Management.Monitor.Management.Models.RuleAction"。 " 我如何克服这个问题?如何通过PowerShell关联现有的Action Group? Sourav Karmakar 解决方案 似乎在这里回答了同样的问题: https://stackoverflow.com/questions/55773038/create-log-alert-rule-through-powershell-and-attach-more-than - 酮动作组 I want to create a metric alert rule and attach some existing action groups to that rule. My powershell code is showing some error like this" Add-AzMetricAlertRule : Cannot bind parameter 'Action'. Cannot convert the "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup" value of type "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup" to type "Microsoft.Azure.Management.Monitor.Management.Models.RuleAction". "How can I overcome this problem ? How can I associate a existing Action Group through PowerShell ?Sourav Karmakar 解决方案 Seems like the same question was answered here:https://stackoverflow.com/questions/55773038/create-log-alert-rule-through-powershell-and-attach-more-than-one-action-groups 这篇关于通过PowerShell将现有操作组附加到新的度量标准警报规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-29 20:18