Forum Discussion
Mali_Stane
Sep 22, 2023Copper Contributor
Create azure metric alert PowerShell
Hi, I have following situation. I have several VMs. I would like to activate Metric alert and some log alert. I have done it manually and it works ok… I have to do this 50 times, so I do not wa...
Mali_Stane
Sep 28, 2023Copper Contributor
does anyone hev a solution
Error that I get is following :
Add-AzMetricAlertRuleV2: Cannot bind parameter 'ActionGroup'. Cannot convert the "{
"actionGroupId": "/subscriptions/A****
}
}" value of type "Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup" to type "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup".
Error that I get is following :
Add-AzMetricAlertRuleV2: Cannot bind parameter 'ActionGroup'. Cannot convert the "{
"actionGroupId": "/subscriptions/A****
}
}" value of type "Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup" to type "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup".