Azure Monitor - Apply Azure monitoring metrics using PowerShell #Creating an action group as an object $action = [Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]::New("/subscriptions/SubscriptionIDUpdatehere/resourceGroups/alert/providers/Microsoft.Insights/actiongroups/alertaction") #Setting up condition as an object $condition1 = New-AzMetricAlertRuleV2Criteria ` -MetricName "Percentage CPU" ` -MetricNameSpace "Microsoft.Compute/virtualMachines" ` -TimeAggregation Average ` -Operator GreaterThan ` -Threshold 96 $condition2 = New-AzMetricAlertRuleV2Criteria ` -MetricName "Available Memory Bytes" ` -MetricNameSpace "Microsoft.Compute/virtualMachines" ` -TimeAggregation Average ` -Operator LessThan ` -Threshold 1000000000 $condition3 = New-AzMetricAlertRuleV2Criteria ` -MetricName "Data Disk IOPS Consumed Percentage" ` -MetricNameSpace "Microsoft.Compute/virtualMachines" ...