通过PowerShell将现有操作组附加到新的度量标准警报规则 [英] Attach existing action groups to a new metric alert rule through 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
< blockquote>
似乎在这里回答了同样的问题:
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:
这篇关于通过PowerShell将现有操作组附加到新的度量标准警报规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!