更新时间:2023-12-02 22:18:28
似乎在这里回答了同样的问题:
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: